943,572 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 850
  • C++ RSS
Jan 21st, 2009
0

I would like to learn C++

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
appy33 is offline Offline
2 posts
since Jan 2009
Jan 21st, 2009
0

Re: I would like to learn C++

What O/S?
What compiler?
What IDE?
Moderator
Featured Poster
Reputation Points: 4142
Solved Threads: 394
Industrious Poster
Nick Evan is offline Offline
4,132 posts
since Oct 2006
Jan 21st, 2009
0

Re: I would like to learn C++

If 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.
Reputation Points: 104
Solved Threads: 27
Posting Whiz in Training
dmanw100 is offline Offline
239 posts
since Apr 2008
Jan 21st, 2009
0

Re: I would like to learn C++

You can also see directories in the compiler and check the path in which your compiler is stored
Reputation Points: 6
Solved Threads: 9
Junior Poster in Training
ajay.krish123 is offline Offline
90 posts
since Nov 2008
Jan 22nd, 2009
0

Re: I would like to learn C++

Click to Expand / Collapse  Quote originally posted by appy33 ...
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.
yes i can help you.please tell me clearly your query.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Stenna1 is offline Offline
6 posts
since Jan 2009
Jan 22nd, 2009
0

Re: I would like to learn C++

Here is the link that explain step by step procedure:

http://www.cs.cf.ac.uk/Dave/C/node3.html

Hope this will work for you
Reputation Points: 10
Solved Threads: 1
Newbie Poster
Monalisaparker is offline Offline
22 posts
since Jan 2009
Jan 22nd, 2009
0

Re: I would like to learn C++

Click to Expand / Collapse  Quote originally posted by dmanw100 ...
If 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:

C++ Syntax (Toggle Plain Text)
  1. cin.ignore(cin.rdbuf()->in_avail());
  2. cin.get();
Reputation Points: 352
Solved Threads: 108
Master Poster
skatamatic is offline Offline
772 posts
since Nov 2007
Feb 6th, 2009
0

Re: I would like to learn C++

thank you for this thread I will look into it.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
appy33 is offline Offline
2 posts
since Jan 2009
Feb 6th, 2009
0

Re: I would like to learn C++

dont forget...... www.codeblocks.org
Reputation Points: 462
Solved Threads: 392
Senior Poster
evstevemd is offline Offline
3,681 posts
since Jun 2007
Feb 6th, 2009
0

Re: I would like to learn C++

Click to Expand / Collapse  Quote originally posted by skatamatic ...
Instead use this:

C++ Syntax (Toggle Plain Text)
  1. cin.ignore(cin.rdbuf()->in_avail());
  2. cin.get();
An even better way would be run it from your console/command prompt! Since it's a "console" application!

And DO NOT use system("PAUSE"); . Not only is it non-portable, but its also a VERY expensive system call!

You should probably read the Sticky "How Do I Clear the Input Buffer?"

Chris
Last edited by Freaky_Chris; Feb 6th, 2009 at 1:13 pm.
Reputation Points: 325
Solved Threads: 118
Master Poster
Freaky_Chris is offline Offline
702 posts
since Apr 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: C++ Program that Displays Initials
Next Thread in C++ Forum Timeline: Finding The Even Numbers DO NOT RUN PROGRAM





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC