The command prompt window behavior is different in accordance with the operation of the debug mode, or in debug mode. Run in publishing mode, you will see a marker's Press Any Key to Continue message in the console at the end of a program. I will still be able to see it.
Any output sent to the console and can check the console window when these outputs can be checked. If you run in debug mode and start the program from Windows, the console window will disappear when the program is just over, and there is no warning message. You need to see any output of the console before you close the program.