F5 is the command to start debugging, Ctrl + F5 is the command to start debugging (not debugging). If you change the command to Ctrl + F5, you can display the output normally and “Press any key to continue… “One word, and the problem is settled.
However, some people will find that after pressing Ctrl + F5, the program will still flash, so you can try the following method to solve this problem:
① Right click on the name of your project on the right and select the property at the bottom.


② select the configuration properties in turn ->; Connector – & gt; system

We locate the SUBSYSTEM on the right, click the down arrow on the right and select the CONSOLE

Finally make sure to save, you can try again after the operation by pressing Ctrl + F5 to run ~
There’s actually another way to do it, in return 0; Enter system (” pause “) on the previous line;
Read More:
- The perfect solution of VS2010 console program running in a flash
- Solution to the flash of visual studio console program output window
- Problem solving – vs debugging window flash solution
- How to solve the problem that the console window disappears in a flash after visual studio 2017 runs
- Solution to the problem of console output window’s CMD flashing back when vs2015 writes C + + program
- The solution of console flash in C + +
- Solve the problem of flash back in VS2010
- 2、 Solutions to the problem of flash back in vs2017
- The problem of running result window flash of vs2015
- Visual studio 2015 compiler, console flash solution
- VS2010 debugging window flash solution
- Solution for flash back of vs2015 running interface
- The problem of black box flash away in vs2019 debugging
- Solve the problem of vscode window console “flash”
- How to solve the problem that the output results of C + + program written in VS2010 flash by
- Solution to the problem of Chinese garbled in gradle console in idea
- Solution of vs program flashback problem
- Vs series console flashback solution
- Flashback problem of output window of visual studio 2017 console program
- Solution to the problem that OpenGL can’t find glew32.dll in vs2019