Beginners (Page 74)

Need Help with the code
What is the correct answer and why? int main() { float val = 100.0; ...
[4 replies] Last: BEcause after you divide val by 5 third time result will be less than ... (by MiiNiPaa)
expected initializer before ': and was not declared in this scope
Hi. My name is Tung. I just began study C++ and encountered some problem with it. I am writing a pro...
[2 replies] Last: Thanks slouchcouchgamer (20). But my program still pop up this error z... (by tungnguyen123)
why i keep getting an error error: invalid use of non-static data member 'Wasd::height'| #include...
[3 replies] Last: normal members are copied for each instance of an object: class exa... (by Disch)
Math formula
How can I convert the following into C++? sin 2 x? Thank you.
[6 replies] Last: True, I was thinking about that myself after I posted but didn't bothe... (by Ganado)
What is the answer and why? #include <iostream> using namespace std; int fun...
[4 replies] Last: Thanks buddies, great help (by fazalhussainakbar)
Variable type for deciamls
I have to display a number like 2.3284646746 keeping all the digits. Is there a variable type that c...
[4 replies] Last: Thank you. It worked. (by gabor53)
error 'char_Creator' was not declared in this scope
i keep getting that error all the time i run the following code and im not sure why: #include ...
[1 reply] : put your char_Creator function above your world_Builder function. (or... (by squished18)
by kemkoi
Making string count numbers, blanks and alphabetical characters
Hello, I'm trying to create a program that counts the amount of alphabetical characters, numbers, bl...
[5 replies] Last: Thank you sir, that solved the problem. (by kemkoi)
3D arrays
I am trying to find the minimum and maximum values in a 3D array. But for some reason my code just ...
[12 replies] Last: Got it. I edited my post above. It works perfectly. Thanks guys for... (by DeathLeap)
ZigZag Design Help
My program is suppose to look like this: Please enter the maximum field width: 9 Enter the microsec...
[2 replies] Last: With the way you are trying to do it, you will need a directional indi... (by squished18)
Switch problem
Hi, (I am one hell of a newbie in C++) The Question is: Write a C++ program that prompt user to en...
[3 replies] Last: @LB : Thanks for the advice, i used if else if statement. and it work... (by Paragon)
Program 17
Continuing the previous program: Change the program so that it uses doubles instead of ints. Change ...
[7 replies] Last: Nice explanation, I`m trying to understand how Input/Output streams wo... (by pacman169)
Vector of base and derived classes
I asked a similar question to this previously, so apologies in advance, but the example I gave was q...
[4 replies] Last: Excellent, thanks MiiNiPaa. Using virtual functions was the missing li... (by slouchcouchgamer)
Convert seconds and minutes
Hello, I am quite new to programming and I have a question. I am writing a program where the use...
[2 replies] Last: After Adding up Seconds and Minutes, You can do it the following way: ... (by Atyab)
Sum of all odd numbers between a inputed range
I wrote a program to find the sum of all odd numbers between two inputed number (as range). It s...
[5 replies] Last: Excellent point ... (by kemort)
by kugi
[C++] SDL Errors - Undeclared Functions (Or Not)?
HEllo! I'm still working on ski jumps game. (I made new code). So i write everythink , and when i pr...
[2 replies] Last: First, I suggest you look at how each SDL function operates at base le... (by roger911)
by wooly
Need some help!
I'm trying to write a script asking people if a test was too hard or not. I'm new, and I'm not ver...
[3 replies] Last: So, forgetting how to write the C++ code what steps would you take to ... (by kemort)
Do loop, check if input is what I want
Here is a easy program which I want the user to choose from number 1 to 5. But if the user input a s...
[2 replies] Last: Hi, I really dislike no hate constructs like on line 10. They are ... (by TheIdeasMan)
wrong result.
In my program i have the following: 84.74 - 84 - 0.74 and it says it equals to -2.14577e-006 , how d...
[8 replies] Last: Well first off, why are you intermixing doubles and floats? It might n... (by Ganado)
if/else with "or" operator
In my code below, I want to be able to enter invalid ages for the first "if" over and over again and...
[5 replies] Last: Thank you! Figured it out. (by JoJodoggy1)
Pages: 1... 7273747576... 103
  Archived months: [aug2014]

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