Please help me!

Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Oct 2006
Posts: 2
Reputation: Manas Kumar Sen is an unknown quantity at this point 
Solved Threads: 0
Manas Kumar Sen Manas Kumar Sen is offline Offline
Newbie Poster

Please help me!

 
0
  #1
Oct 26th, 2006
I am using Dev c++ IDE for c and c++. When i run an aplication the running window disappears quickly.
What should i do?
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 2,988
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: 308
Moderator
Featured Poster
niek_e's Avatar
niek_e niek_e is online now Online
Cenosillicaphobiac

Re: Please help me!

 
0
  #2
Oct 26th, 2006
just before return, place a getchar();

gr Niek
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 24
Reputation: waldis is an unknown quantity at this point 
Solved Threads: 0
waldis's Avatar
waldis waldis is offline Offline
Newbie Poster

Re: Please help me!

 
0
  #3
Oct 26th, 2006
This is what I use, it pauses right before exiting, it's pretty much the same as getchar(), only difference that pressing any key works to exit, where if you use getchar() you have to hit return (enter) to exit

system("PAUSE");
return EXIT_SUCCESS;

Cheers,

Waldis
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

Rick Cook, The Wizardry Compiled
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 223
Reputation: Anonymusius is on a distinguished road 
Solved Threads: 10
Anonymusius's Avatar
Anonymusius Anonymusius is offline Offline
Posting Whiz in Training

Re: Please help me!

 
0
  #4
Oct 26th, 2006
Dont use system("pause"); because you can easily replace it with cin.get(); which is, to the controary of system("pause");, compatible with more OS's then just Windows. If you can should you always make your program cross-OS if you can.
Reply With Quote Quick reply to this message  
Reply

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



Other Threads in the C++ Forum


Views: 1101 | Replies: 3
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC