Click Here to Login
Join Computer forums Today

Thread: Dev C++ help
View Single Post
Old 04-03-2005, 06:55 AM   #2
Fully Optimized
UK31337's Avatar
Join Date: Feb 2005
Posts: 2,776

Chances are you're not doing anything wrong.

Add the following line to the end of your program:

Put it just before the final closing brace in int main()

You'll then see your window stay open and it'll say "Press any key to continue..." instead of just exiting.

To get around this problem without that extra code, just open up Command Prompt, navigate to the directory that contains your exe, and run it from there. The window won't close after you run the program.
UK31337 is offline   Reply With Quote

All times are GMT -5. The time now is 09:45 AM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2018, vBulletin Solutions, Inc.