|
From: Ray K. <he...@er...> - 2004-02-25 11:35:00
|
"alf" <al...@bl...> wrote:
> my dos console stays on by putting cin.get() before return 0.
That's because it's waiting for input, and doesn't close before it gets=20
some.
> the windows consoles just blink on then off with or without cin.get().
That's because the program returned, and doesn't have a reason to stay=20
open.
> What should I do?
You should set your email client to plain-text mode, so we don't
have to look at this:
> without cin.get().</FONT></DIV>
> <DIV><FONT face=3D3DArial size=3D3D2>What should I do?</FONT></DIV>
> <DIV><FONT face=3D3DArial size=3D3D2>many thanks =3D
> alf.</FONT></DIV></BODY></HTML>
>
> ------=3D_NextPart_000_0011_01C3FA4F.97A46680--
Then you should either run from a command line, which won't close when yo=
ur
program finishes running, or you should leave cin.get() in.=20
(system("pause");
will work, too, but only on a DOS or DOS derivitive system.)
|