0

The compiled application exits automatically

I am currently using DEV C++ After compiling when i exits DEV C++ and click on the compiled ext file...it opens and asks for the required commands...after completion it exits by its own... is there any solution for it..if yes then please mention in comment

11th Jul 2016, 7:57 PM
Pankaj Das
Pankaj Das - avatar
2 Antworten
0
Have you ensured that the program waits for a key press or something before closing the terminal? Like cin.get(), _getch() or system("pause")?
11th Jul 2016, 9:42 PM
Garme Kain
Garme Kain - avatar
0
if i run the program inside devc++ it asks to hit a key to exit...but when i runs the same program outside devc++ it opens and exits automatically
20th Jul 2016, 7:43 PM
Pankaj Das
Pankaj Das - avatar