|
From: Saundra S. <Sch...@ho...> - 2000-10-17 23:44:14
|
As I've recently asked this question, I'll pass on the info I was =
provided and which has worked for me....
quoted from Spiderman's response to my question:
Include stdlib.h then at the end of your program write: =
system("pause"); here is an example:
#include <iostream.h>
#include <stdlib.h>
void main()
{
cout<<"Hello world!\n";
system("pause");
}
----- Original Message -----=20
From: Mark Peers=20
To: dev...@li...=20
Sent: Tuesday, October 17, 2000 7: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.
|