Re: [Dev-C++] Problem running programs
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: nada <na...@ca...> - 2003-02-16 12:24:12
|
>
> i'm a new user to DevC++ whenever i compile and run a program the
>program runs in a flash without me able to see the output,how do i make the
>output screen stay till i close it .
> i'm a new user to DevC++ whenever i compile and run a program the
>program runs in a flash without me able to see the output,how do i make the
>output screen stay till i close it .
add:
system("pause");
on the line above "return 0;" in main().
"system" uses stdlib.h, so be sure to #include it.
FWIW: I added both of these to the "Insert" menu - saves me the time of
re-typing them. To add to the "Insert" menu:
1) Choose "Tools-->Editor-->Code->Add"
I hope this helps.
<rb>
|