• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Dev-C++ Issue: DOS Window closes way too fast.

CKTurbo128

Platinum Member
I'm not sure if this goes in OS or this forum, as it relates to both. Anyhow, this is somewhat embarrassing to ask, but in Windows XP Pro., how do you change DOS execution options? I'm currently using Dev-C++ to code some simple C++ programs and does output through DOS. However, the DOS window closes immediately after the DOS program finishes executing, so I can't see any of the errors or outputs generated from my program. Is there a way to keep DOS windows open even after exeuction has finished?
 
You can launch you program from the command prompt (Start Menu -> Accessories -> Command Prompt) or add (I think) getchar() at the end of your program so that it waits for a keystroke before closing.
 
Back
Top