|
From: <h.r...@gm...> - 2002-04-07 12:03:17
|
> John,
>
> >> Can someone tell me why my DOS windows close on me all the time. I
> cleared the "close on exit" box, but it still closes on me. <<
>
> The simple answer is that is the way windows is designed to function,
> but don't ask me why.
>
> I perfer this method:
> #include <iostream.h>
> #include <conio_mingw.h>
>
> int main()
> {
> /* your code goes here */
>
> while (!kbhit());
> return 0;
> }
> Regards,
>
> Bob
>
Hi,
a other method is:
#include <cstdlib>
int main(int argc, char *argv[])
{
[...]
system("PAUSE");
return 0;
}
regards
Horst
--
--------------------------
Horst Rößner
Postf. 1802
52205 Stolberg
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
|