I would like to learn C++

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2009
Posts: 2
Reputation: appy33 is an unknown quantity at this point 
Solved Threads: 0
appy33 appy33 is offline Offline
Newbie Poster

I would like to learn C++

 
0
  #1
Jan 21st, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 2,833
Reputation: niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute 
Solved Threads: 297
Moderator
Featured Poster
niek_e's Avatar
niek_e niek_e is offline Offline
Roasting Maven

Re: I would like to learn C++

 
0
  #2
Jan 21st, 2009
What O/S?
What compiler?
What IDE?
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 160
Reputation: dmanw100 is on a distinguished road 
Solved Threads: 12
dmanw100's Avatar
dmanw100 dmanw100 is offline Offline
Junior Poster

Re: I would like to learn C++

 
0
  #3
Jan 21st, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 90
Reputation: ajay.krish123 is an unknown quantity at this point 
Solved Threads: 8
ajay.krish123 ajay.krish123 is offline Offline
Junior Poster in Training

Re: I would like to learn C++

 
0
  #4
Jan 21st, 2009
You can also see directories in the compiler and check the path in which your compiler is stored
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 3
Reputation: Stenna1 is an unknown quantity at this point 
Solved Threads: 0
Stenna1 Stenna1 is offline Offline
Newbie Poster

Re: I would like to learn C++

 
0
  #5
Jan 22nd, 2009
Originally Posted by appy33 View 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.
yes i can help you.please tell me clearly your query.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 22
Reputation: Monalisaparker is an unknown quantity at this point 
Solved Threads: 0
Monalisaparker Monalisaparker is offline Offline
Newbie Poster

Re: I would like to learn C++

 
0
  #6
Jan 22nd, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 390
Reputation: skatamatic will become famous soon enough skatamatic will become famous soon enough 
Solved Threads: 39
skatamatic skatamatic is offline Offline
Posting Whiz

Re: I would like to learn C++

 
0
  #7
Jan 22nd, 2009
Originally Posted by dmanw100 View Post
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:

  1. cin.ignore(cin.rdbuf()->in_avail());
  2. cin.get();
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 2
Reputation: appy33 is an unknown quantity at this point 
Solved Threads: 0
appy33 appy33 is offline Offline
Newbie Poster

Re: I would like to learn C++

 
0
  #8
Feb 6th, 2009
thank you for this thread I will look into it.
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 1,357
Reputation: evstevemd has a spectacular aura about evstevemd has a spectacular aura about evstevemd has a spectacular aura about 
Solved Threads: 127
evstevemd's Avatar
evstevemd evstevemd is offline Offline
Nearly a Posting Virtuoso

Re: I would like to learn C++

 
0
  #9
Feb 6th, 2009
dont forget...... www.codeblocks.org
Atheist: God is man made imagination, he doesn't exist!
Theist: It's okay, can you imagine anything else that doesn't exist?
Junior MD --- Python, C++ and PHP
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 670
Reputation: Freaky_Chris is a jewel in the rough Freaky_Chris is a jewel in the rough Freaky_Chris is a jewel in the rough 
Solved Threads: 113
Freaky_Chris's Avatar
Freaky_Chris Freaky_Chris is offline Offline
Practically a Master Poster

Re: I would like to learn C++

 
0
  #10
Feb 6th, 2009
Originally Posted by skatamatic View Post
Instead use this:

  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.
Knowledge is power -- But experience is everything
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC