Re: [Dev-C++] How to not close output win?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Massimo B. <kb...@ce...> - 2003-10-03 10:32:23
|
On Fri, Oct 03, 2003 at 12:15:54PM +0200, Tim Schumacher <ti...@we...> wrote:
>
> void wait ()
> {
> ~ cin.clear ();
> ~ cin.ignore ( cin.rdbuf () -> in_avail () );
> ~ cin.get ();
> }
More elegant than mine, but still not very confortable. I had to put a
wait() at every exit point.
M.
--
Massimo Bertozzi
Dipartimento di Ingegneria dell'Informazione Voice: +39 0521 90 5735
Parco Area delle Scienze, 181A, Parma, ITALY Fax: +39 0521 90 5723
WWW: http://www.ce.unipr.it/people/bertozzi E-mail: ber...@CE...
|