When you first come into contact with Visual Studio, most people will write a Hello World program to try. Some people will find that the output window will flash past after execution, and there is no “Press any key to continue”. This happens in both Visual Studio 2008, 2010, and 2012, and some people might do it one of two ways:
Add system(“pause”) or getchar() at the end of the program code. In fact, this is a command under DOS.
The problem is that when you Press F5, the correct one should be Ctrl+F5, and the window will display Press any key to continue… That’s it. You can also see the results of the program run.
This is because F5 is in Debugging mode, where the window does not remain open once the application finishes running. If CTRL +F5 is in Start Without Debugging mode, you’ll be able to see the results.
If you press Ctrl+F5 and it still flashes, then use the following Settings:
Right-click on Project –>; Property – & gt; Configure properties –> Connector – & gt; System – & gt; Subsystem (on the right side of window) –>; SUBSYSTEM:CONSOLE Drop down SUBSYSTEM selection CONSOLE
Read More:
- Flashback problem of output window of visual studio 2017 console program
- Visual studio console program output window flashed by
- How to solve the problem that the console window disappears in a flash after visual studio 2017 runs
- The solution to the black window flash of running program on Visual Studio
- Solution to the flashback of visual studio output window
- Solution to flash back of visual studio 2017 running program
- Solution to the problem of console output window’s CMD flashing back when vs2015 writes C + + program
- Visual studio 2015 compiler, console flash solution
- Solution to the flash of visual studio 2017 running program
- The problem of flash back by pressing enter window when debugging or executing program in Visual Studio C
- Flash back of running program in Visual Studio 2017
- The solution of windows not flashing back when visual studio console program is running
- Why does the result screen flash when visual studio runs the program?
- Solution of command line window flashback when visual studio runs C + + program
- The perfect solution of VS2010 console program running in a flash
- Solve the problem of visual studio console flashback
- Solution to the problem of console flash in vs2017 runtime
- Visual studio 2012, a complete collection of solutions to flash back windows after running
- The problem of window flash after C + + program is compiled and run
- Flash back when compiling Visual Studio