Beginners - January 2018 (Page 7)

Random Number Generator Error
 
The following is my code, I have the GetProduct function down, I believe I possibly have the printEv...
[1 reply] : srand() goes in main(). But, since this is C++, you might as well do i... (by Duthomhas)
Array of Struct
 
I have to write a program where it takes in data of name, id, rate, and hours. I have to use an arra...
[2 replies] Last: #include <iostream> #include <string> #include <fstream> struct P {... (by fiji885)
C programming- array
 
I get this two warnings when im trying to run my program. I can“t seem to solve it. However when im...
[11 replies] Last: Here is your program, updated to help you. #include <stdbool.h> #in... (by Duthomhas)
Math
 
Hello . I'm in school right now but i'm trying to learn c++ , and i really want to make something fo...
[5 replies] Last: Well i fixed it . Thank you so much <3 (by ialexsandu)
Melon
 
#include <string> #include <iostream> #include <cmath> #include <fstream> #include <vector> /*i...
[3 replies] Last: @coder777, After I wrote that I noticed that one of the posts was rep... (by Handy Andy)
c++ game problom
 
my code is not working im using visual studio 2017,i tryed romoveing #include "stdafx.h" it solves t...
[2 replies] Last: could you elaborate on the problem, and explain what happens when you ... (by Arctic)
generating card box
 
Hello im getting stuck to generate my card design. the output of my card is okey but when it comes t...
[5 replies] Last: @keena Could you display lines 41 to 57 as shown in the original post... (by whitenite1)
wrong answer with calculator
 
Hi guys I am making a simple token calculator and I am getting unexpected results for some reason...
[1 reply] : you type 2+2q it does some things and ends up in the + part of the swi... (by jonnin)
Using a class as a member for another class: incomplete type error
 
Hello, I'm fairly new to C++ and am having an issue with accessing a member variable that is of ano...
[4 replies] Last: Ah, I see that now....worse in my actual code as I have four header fi... (by gppalm24)
Check if value exists in array?
 
How can I check if a value exists inside of an array. Something like this: if(99 in ourArray) { ...
[1 reply] : You could use std::find. if (std::find(std::begin(ourArray), std::en... (by Peter87)
Fahrenheit to Celsius and vice versa conversion help
 
Can you please help? This is what i have. #include <iostream> #include <string> #include "cstdlib...
[5 replies] Last: The far() and cel() routines are the wrong way round, and have too man... (by lastchance)
how to compute a value of intersection of two arrays?
 
I was able to write a function that prints out the intersection of two arrays. However, I am trying ...
[8 replies] Last: @MadMaul13, intersection_arr is still a zero-size array. It is still... (by lastchance)
difference seekp and seekg
 
Can anyone tell me in a simple way what is the difference between seekg and seekp? The tutorials are...
[1 reply] : It is currently a flaw in many library implementations (and, IMHO, the... (by Duthomhas)
by isan
send message to all clients who are connected to server
 
In this code I want to send a message to all clients who are connected to the one server But it can...
[3 replies] Last: @Repeater Thanks for your response and I added this to my code, but I ... (by isan)
Array help, outputs the wrong thing
 
So, I thought the code looked good, but it doesn't output what it should. The code is supposed t...
[1 reply] : You want something like this for peter... its not exactly right but th... (by jonnin)
Watermelon
 
A #include <fstream> #include <string> #include <vector> #include <iostream> void mirardato...
[no replies]
Pineapple
 
#include <string> #include <iostream> #include <cmath> #include <fstream> #include <vector> /...
[1 reply] : No tienes una pregunta. Edit: I see you're just a troll or a really s... (by Ganado)
homework problem someone plz solve..fun with geometry
 
A rectangle is represented with two coordinates.The first coordinate (a,b) represents the top-left p...
[4 replies] Last: Figuring the intersection of two rectangles can be a pain. Here's an e... (by dhayden)
c++ output explanation
 
#include<iostream> using namespace std; int main() { int n,k; int j = 8; for (int i = 0; i <...
[4 replies] Last: thank bro for the help (by sahil9620)
infile -> outfile does nothing
 
I'm trying to ignore some lines in temp.txt and copy the rest to temp2.txt. when the line has two ...
[3 replies] Last: @cire Thank you, this works as I need it to. What is the difference b... (by smoothstone)
January 2018 Pages: 1... 56789... 22
  Archived months: [dec2017] [feb2018]

This is an archived page. To post a new message, go to the current page.