Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+2
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
~4K People Reached
Favorite Forums
Favorite Tags
c++ x 18
Member Avatar for 23.12.2012

Hi! I opened this thread because I've found out that, as I'm making my way through a textbook, I find many problems which I can't figure out for myself. To start, **Thinking in C++** has this buggy program right in its second chapter. The code looks OK to me, but …

Member Avatar for 23.12.2012
1
210
Member Avatar for 23.12.2012

<< split from [url]http://www.daniweb.com/forums/thread67837.html[/url] >> I need to print post #15. How do I do that? I can't seem to find the button. I need it just as it was written here. Also, do I need to know C++ classes in order to be able to implement the in-game classes? …

Member Avatar for 23.12.2012
0
102
Member Avatar for gispe

Try using Code::Blocks as your IDE, because I'm sure this uses MinGW, which is the Windows port of the GNU C++ Compiler, which is probably the best C++ compiler. Or... you could try installing Ubuntu and run the original compiler. This way, I'm positive you'll get all the errors that …

Member Avatar for losh177
0
137
Member Avatar for xiikryssiix
Member Avatar for ss2602

You might also want to prompt the user for the file's path. This way, you'll have a second variable, or you'll have to also tell the user to include the path when he inputs the file name. If you go for the former, you'll also need some string concatentation.

Member Avatar for iamthwee
0
2K
Member Avatar for boyjim32

[QUOTE=ALI INAM;924372][code] #include "stdafx.h" #include <iostream> #include <fstream> #include <string> ... }while (i < 5); } [/code] i hope this helps you more then it helps me and all of you are mo9st welcome to improve it and best of all critise on ot[/QUOTE] Have you tried compiling the code …

Member Avatar for mvmalderen
-1
247
Member Avatar for metalclunch

[quote][icode]choice > 0 && choice < 5[/icode] (I also changed the one to a zero here).[/quote] Hmm... if the range is 1 - 5 (5 included), shouldn't we use [icode]choice > 0 && choice <6[/icode] or [icode]choice > 0 && choice <= 5[/icode]?

Member Avatar for 23.12.2012
0
237