After compiling console programs the console window closes immediately after running. What is the best practice for keeping it open? I\'ve searched google loads, I\'m used t
Since you always run in the debugger, set a breakpoint on the return statement from main().
main()
The debugger is your best friend, learn (and learn early) to use it to your advantage at every opportunity.