Beginners (Page 51)

Need help with loops
Cant get my program to loop correctly and i just cant figure it out. #include <iostream> u...
[2 replies] Last: - Use do-while loops - Have the functions return values. - Make sure y... (by dhayden)
by kiri
How do u get this?? I dont understand the % part
I dont understand how u get that with the %... What type of statement is this? for (int i=1; i...
[2 replies] Last: I figured it out before u answered, omg was it easy lol. Thank u thoug... (by kiri)
OS X Initialize OpenGL
Hello, I've converted from DirectX 11 to OpenGL 4.x on OS X. Is there a way to initialize OpenGL ...
[no replies]
I need Help! I need a quick peer review!
I am currently in a beginners C++ course at my collage. It's an online class and one of the requirem...
[1 reply] : Recursively calling main is not legal behavior by the standard. If you... (by Ganado)
subtracting binary numbers
Hello! i need help with my program. im trying to write a function that takes in 2 binary numbers and...
[6 replies] Last: IMO, the way you are trying will be difficult for you! it will be litt... (by anup30)
How do I call a function in main ?
So I have the function declaration at the top for example void read (string x , string y , in...
[6 replies] Last: Hm it still doesn't work i tried to do it this way read(name1, name2... (by agamatr)
Elevator program errors
Don't know what I'm doing wrong. Trying to write an elevator program that allows the user to display...
[4 replies] Last: Line 31: As previously mentioned, you need a ; Line 44: Also as pr... (by AbstractionAnon)
passing a const
i need help on how to pass a const int in a non member function? imaginary header file: #pragma on...
[1 reply] : Not enough information. You haven't show us complex.h nor the declara... (by AbstractionAnon)
I can't find the logic or it's just not possible?
Hello guys, this is my second post. I have a question about While-Loop with only ONE variable. Loo...
[8 replies] Last: Rules? 1) Use one variable only. 2) Use a while loop. 3) Must use ++n.... (by fun2code)
OO programming?
Hello Forum! I've decided to learn c++. I already know other languages like Java and C#. It's ea...
[2 replies] Last: World.h : #ifndef __WORLD_H__ #define __WORLD_H__ class Player; #in... (by stulleman)
Calculate Actual date
Hi Experts, I want to calculate date from day of the year and year. In oracle to_date function...
[5 replies] Last: You could use sprintf() to put the final string into a buffer and then... (by dhayden)
by Fedeb
Pointer to an Array Versus an Array of Pointers
Hi, my question is basically the title of the topic. I know that an array of pointers uses scatter c...
[1 reply] : I'm sure that's not your real question, as these are 2 completely diff... (by tipaye)
by EnHo
difrent between c& and c*
i have this lecture that in it we have a class named c. in one of it's methods it return c&. what ...
[6 replies] Last: Consider this: int *p; // p is a pointer to int int x = 0; // x is an... (by tipaye)
Tic Tac Toe project
As an assignment we have to make a program to have a tic tac toe game. But the functions in class se...
[no replies]
Substitute cin with "getline" when storing values for operation.
So I am still learning about C++. I'm trying to substitute cin with getline. So instead of storing v...
[7 replies] Last: I just want to warn you, stringstream constructor is painfully slow. I... (by MiiNiPaa)
copy constructor
Hi, when passing a class parameter to a function using a const lvalue reference, am i required to pr...
[7 replies] Last: @MiiNiPaa thanks a lot for the insight, so that means i should retain ... (by andy1992)
I've been messing around with this for a couple of days now. I'm trying to generate a grid of 0s and...
[1 reply] : You want AND && not a comma in your "if...else..." checks.... (by Computergeek01)
by Dkob1
Switch Statement to make Menu
I think I was supposed to use swich statement to construct a menu but I did it like this, how would ...
[12 replies] Last: @Jaybob: I'm trying not to give out direct solutions. =/ How is he ... (by Disch)
by duri93
Class inheritance and function overloading
Hi! I am quite new to c++, and I have a little problem with class inheritance, function overloading ...
[3 replies] Last: A nice succinct explanation here: (by mutexe)
by Opera
How to print text in multiple rows and columns?
I am new to programming and I wonder if someone could please help me with a program that asks the us...
[2 replies] Last: Thank you so much for the help MiiNiPaa. I thought that I had to strug... (by Opera)
Pages: 1... 4950515253... 59
  Archived months: [jan2015]

Cannot post in this page. To post a new message, go to the first page.