From: <mik...@em...> - 2002-01-22 23:02:03
|
This is simple. You can add one of two things at the end of the source file, right before the return 0; --------First choice------- printf( "Press [enter] to quit..." ); getchar(); --------Second Choice------- system( "pause" ); ------------------------------ I prefer the first choice as I use Linux also, and in Linux no pause command exists. For DOS only apps though, the second choice works fine. __________ Mike Shoup [http://www.psxfanatics.com] ___________________________________________ At 20:06 20/01/02 -0500, Rob Orlando wrote: >I am just learning c++ and have a question. When I execute a file my >application only appears for a fraction of a second then disappears. How >do I get it to stay up so I can read it? >Jen |