From: Jason S. <jas...@at...> - 2000-10-17 19:12:00
|
Mark, At the end of the program under main, before return 0;, put in = getchar(). That'll require an input from the keyboard before any other = action will be taken, and in this case, shutting down the program. (Make sure to include iostream.h and stdlib.h) -Jason ----- Original Message -----=20 From: Mark Peers=20 To: dev...@li...=20 Sent: Tuesday, October 17, 2000 10:56 AM Subject: [Dev-C++] (no subject) Hi, I have just started using devcpp4 and have successfully written some = basic programs. I am having a problem when executing programs. The = program runs but the window immediately closes after the program has = finished running and I cannot see the results of the program. Is there = anyway to keep the window open after the program has finished running. Thanks. |