C++ Problem

Status
Not open for further replies.

Legion

Gaming Lord
Staff member
Nov 23, 2011
1,808
679
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
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.
 
Status
Not open for further replies.

Users who are viewing this thread

Top