pause c++ programs at the end, after compiling
<p>When I compile a program and run the exe file it automatically closes. Is there any way to avoid it? I know you can put <code>system("pause")</code> but I heard that it is recommended not to use it, or you can put in a <code>cin</code> at the end and wait for the user press something before closing. But is there any "real" official way to make the program stop?</p>
