Unfortunately, programs are rarely launched by using a compiler, much less VC++ 6.0, which is now ten years old. Programs typically run until they are done, then exit. If one wants them to wait for user input to exit, then one asks for user input, whether that be a "Press Enter" or a button or the big X in the upper-right corner, or whatever.