Re: [Dev-C++] How to keep the DOS console open?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <h.r...@gm...> - 2002-10-23 15:29:40
|
> I am experiencing the problem with the DOS console (promt) window, when
> the programme is executed the DOS console is automatically closed, I
> tried changing the settings, etc, but the same thing happends, the DOS
> output window is diseapearing, as I heard the same problem from people
> using other compilers under Windows, I am wondering if anybody knows a
> solution to this problem,
>
> thanks in advance,
>
> Dario
>
Hi,
there are many solutions. One is put
system("Pause") at the end of your program.
BTW: you get the following program if you create a console program in
dev-c++:
#include <iostream>
#include <stdlib.h>
int main(int argc, char *argv[])
{
system("PAUSE");
return 0;
}
Horst
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!
|