Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Community Calendar Today's Posts Search
Go Back   Zelaron Gaming Forum > The Zelaron Nexus > Science and Art > Tech Help

 
 
Thread Tools Display Modes

 
Question Why won't my windows stay open
Reply
Posted 2006-04-03, 12:09 AM
My computer doesn't let my Command Line windows stay open.

They are open for a split second, but close faster than Flash high on caffeine. I need help because I am trying to learn C++ and my projects are all in command prompt style.

If it helps, I am using Bloodshed DevC++.

Dunno if its the program, or if its windows, but its only the Command Line windows that don't stay open.

Thanks for the help.
R.I.P
Pontiac
Jan. 1926 - Dec. 2010 est.

Check the Gallery and Scrapbook often!
[deviantArt Account!]

Spy Hard
Agent WD-40:
Quote:
Well, you carry a UB-21 Schnauzer with an OPS Silencer, that's KGB, You prefer an 18-K over an AK, Your surveillance technique is NSA, Your ID is CIA, you recieved your PHD at NYU, traded in your GTO for a BMW, you listen to CD's by REM and STP, and you'd like to see JFK in his BVDs getting down with OPP and you probably put the toilet paper back on the roll with the paper on the inside...
Old
Profile PM WWW Search
Draco2003 has an imagination enthroned in its own recess, incomprehensible as from darknessDraco2003 has an imagination enthroned in its own recess, incomprehensible as from darknessDraco2003 has an imagination enthroned in its own recess, incomprehensible as from darkness
 
 
Draco2003
 



 
Reply
Posted 2006-04-03, 12:20 AM in reply to Draco2003's post "Why won't my windows stay open"
Add a function to accept input at the end of your code. What it's doing is it's running your code from start to finish like its supposed to, but once it displays the output it closes because there is no more code left for it to run. It's the same thing that would happen if you went to start >> run and then typed ping xxx.xxx.xxx.xxx.

Last edited by Demosthenes; 2006-04-03 at 12:22 AM.
Old
Profile PM WWW Search
Demosthenes seldom sees opportunities until they cease to beDemosthenes seldom sees opportunities until they cease to beDemosthenes seldom sees opportunities until they cease to beDemosthenes seldom sees opportunities until they cease to be
 
Demosthenes
 



 
Reply
Posted 2006-04-03, 06:47 PM in reply to Draco2003's post "Why won't my windows stay open"
There used to be a pif file somewhere in the Windows directory that you could edit and uncheck close on exit to change this behaviour, but adding getch() to the end of the program works equally well and doesn't have annoying side-effects.
Old
Profile PM WWW Search
WetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusion
 
 
WetWired
 
 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 02:27 AM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.