|
From: shocked <sh...@po...> - 2004-11-08 13:54:30
|
Haim Bishop wrote:
> Hello
> I have installed Dev-C++ 4.9.9.0
> I am using windows xp
> When I run a program I have wrote
> opens the dos window and then it closes.
> How can I do that it will stay open after the
> program ends to run.
> Thank you.
>
>
Hi,
This problem sometimes appears in this Mlist, but AFAIK it has no
straightforward solution
Some workarounds I saw are
-to put as last instruction a 'system("pause")' or a 'getchar()' or
something similar that wait for an input
-to place the cursor onto the last instruction and use the
run-until-cursor debug command
These are not the best, because if your code has many exit points (e.g
in case of error) the window will be closed anyway.
Hoping this help you, I say "goodbye"
Andrea S. Atzeni
|