Legion Gaming Lord Staff member Nov 23, 2011 1,808 679 Apr 20, 2012 #1 So, I try to run my .exe file. It runs good. But online when Code::Blocks is open. Once i close that. The file opens for like half a second then it closes. Why does it do that?
So, I try to run my .exe file. It runs good. But online when Code::Blocks is open. Once i close that. The file opens for like half a second then it closes. Why does it do that?
Adil DevBest CEO May 28, 2011 1,278 716 May 6, 2012 #2 Because it executes code and returns 0. You can add cin.get() if you wish to wait, or write a macro for a sleep function. Upvote 0 Downvote
Because it executes code and returns 0. You can add cin.get() if you wish to wait, or write a macro for a sleep function.