I would like to learn C++, Everytime I write the code or should I say copy the code down, I get to where I want to compile but cannot get the program started. Can any one help by explaining how after I copy the code the steps from then on. Thank you in advance.
appy33 0 Newbie Poster
Recommended Answers
Jump to PostWhat O/S?
What compiler?
What IDE?
Jump to PostIf you compile it and it won't run maybe try adding system("PAUSE"); at the end of your code (right before return 0;). This will only work on Windows and isn't portable.
Instead use this:
cin.ignore(cin.rdbuf()->in_avail()); cin.get();
Jump to Postdont forget...... www.codeblocks.org
All 9 Replies
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
dmanw100 36 Posting Whiz in Training
ajay.krish123 -4 Junior Poster in Training
Stenna1 0 Newbie Poster
Monalisaparker 0 Newbie Poster
skatamatic 371 Practically a Posting Shark
appy33 0 Newbie Poster
Stefano Mtangoo 455 Senior Poster
Freaky_Chris 299 Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.