|
From: Daniel G. <sp...@ho...> - 2002-04-07 10:59:48
|
Yes DEV closes as soon as the program has finished. What I do to stop this is to 1) at the start of the code type #include <iostream.h> (I know it's not the 'proper' way but it will work fine here 2) before the end of the program type int x; cin >> x; and the program will wait for you to type a number before exiting. You may like to add cout << "Please type a number to exit\n"; on the line above the cin statement for other ppl to know how to exit. Daniel >From: "John Pallas" <jpa...@ya...> >Reply-To: "John Pallas" <jpa...@ya...> >To: <dev...@li...> >Subject: [Dev-C++] DOS Window >Date: Sun, 7 Apr 2002 05:42:39 -0400 > >Can someone tell me why my DOS windows close on me all the time. I cleared >the "close on exit" box, but it still closes on me. > > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com |