bloodshed devc++ 4.9.9.2

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

Join Date: Mar 2008
Posts: 16
Reputation: ronicasingh is an unknown quantity at this point 
Solved Threads: 0
ronicasingh's Avatar
ronicasingh ronicasingh is offline Offline
Newbie Poster

bloodshed devc++ 4.9.9.2

 
0
  #1
Mar 6th, 2009
Hello guys,

Does anyone know how to keep a console window active till the user presses any key on the keyboard to close the console? Everytime I create a program on devcpp, when I run it the console window just doesn't stay there, it disappears within seconds. I knew how to do this with an older version of devcpp, but since I've upgraded it, I haven't really used it much. Now I want to start with some 2d gaming programs.

Ronica
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 1,169
Reputation: Duki has a spectacular aura about Duki has a spectacular aura about Duki has a spectacular aura about 
Solved Threads: 9
Duki's Avatar
Duki Duki is offline Offline
Veteran Poster

Re: bloodshed devc++ 4.9.9.2

 
0
  #2
Mar 6th, 2009
have you tried
  1. system("pause") ;
?
It is practically impossible to teach good programming style to students that have had prior exposure to Basic; as potential programmers they are mentally mutilated beyond hope of regeneration.

-Edsger Dijkstra
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: bloodshed devc++ 4.9.9.2

 
0
  #3
Mar 6th, 2009
Originally Posted by Duki View Post
have you tried
  1. system("pause") ;
?
:O
You could have at least gave a platform independant solution!
  1. cin.get();
oreven better yet, run your commandline program from the commandline/termianl xD

Chris
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