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: Saundra Schwarz=20
To: dev...@li...=20
Sent: Tuesday, October 10, 2000 6:59 PM
Subject: [Dev-C++] Print Question
I'm a student taking a class in C programming. I need to be able to =
print the results of my program, but when I use the run feature the =
program runs then the run window closes. Is there a way to keep the run =
window active so that I can print the results of my run? Right now i'm =
using a while loop at the end of my programs to hold the screen until I =
can print. =20
-Sam
-------------------------------------------------------------------------=
-----
Link is external to the Privacyx.com System
|