Re: [Dev-C++] How to not close output win?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Tim S. <ti...@we...> - 2003-10-03 10:15:03
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Massimo and hi list,
Massimo Bertozzi wrote:
| Is there any solution (apart to use kludges like
system("pause"); at the
| end of my code)?
I have found the following, works fine for me, but don't ask me
what it realy means ;)
void wait ()
{
~ cin.clear ();
~ cin.ignore ( cin.rdbuf () -> in_avail () );
~ cin.get ();
}
so long
Tim
- --
WE ARE TEH BORG!
~ RESSISTANCE IS FUTILE!
~ http://we-are-teh-b.org/~tim/borg.key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (MingW32)
iD8DBQE/fUxXsMXChvH2qP0RAvoLAJ9oS4A+mR1N0NE0cc9wmDN5Uorq+wCfS18G
hfgV7I5f9mTYnMn2NW++17A=
=WQIR
-----END PGP SIGNATURE-----
|