|
From: Peter D. <don...@ne...> - 2004-11-07 05:39:23
|
Hi Haim, I am no expert but I found the following in a book i have. In your main() function insert the following lines: std::cout << "Press the enter key to exit"; std::cin.ignore(std::cin.rdbuf()->in_avail() + 1); This just waits for the user to press the enter key. Not exactly sure what the std::cin.ignore stuff does as I said I copied it from a book :) Peter. Haim Bishop wrote: >Hello >I have installed Dev-C++ 4.9.9.0 >I am using windows xp >When I run a program I have wrote >opens the dos window and then it closes. >How can I do that it will stay open after the >program ends to run. >Thank you. > > >------------------------------------------------------- >This SF.Net email is sponsored by: >Sybase ASE Linux Express Edition - download now for FREE >LinuxWorld Reader's Choice Award Winner for best database on Linux. >http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > |