That works except when anything is left in cin. So you may want to modify=
it this way..
int x; cin.clear(); cin >> x; =20
----- Original Message -----
From: Daniel Glenfield
Sent: Monday, January 21, 2002 8:35 AM
To: ror...@ne...; dev...@li...
Subject: Re: [Dev-C++] Execution of program
=20
Some people use SYSTEM("PAUSE") (I think that's right) to halt the pro=
gram, so you can see what's on screen. I however prefer to #include <iost=
ream> at the beginning and at the end of the code put =20
int x;
cin >> x;
Get more from the Web. FREE MSN Explorer download : http://explorer.msn=
.com
|