When VS compiles and runs the code, if there is no delay or some kind of response, the window will close immediately after running
Solution a:
in the main function and getchar ()
; add system(” pause “) to the main function
Solution 3:
right-click on the project, select properties, choose the linker, selection system, in the subsystem, the console this
the above methods are debug mode, the way of carrying the shortcut Ctrl + F5
in debug mode, just set a breakpoint in the main function, then one by one to debug
Read More:
- Solution to flash back of visual studio 2017 running program
- Flash back of running program in Visual Studio 2017
- Why does the result screen flash when visual studio runs the program?
- Problem solving – vs debugging window flash solution
- Solution to the flashback of visual studio output window
- Solve the problem of visual studio console flashback
- Some solutions to the problem of windows flashback after vs running
- Solution to the flash of visual studio console program output window
- Flashback problem of output window of visual studio 2017 console program
- The perfect solution of VS2010 console program running in a flash
- Vs output flashback
- Solution of vs program flashback problem
- How to solve the problem that the console window disappears in a flash after visual studio 2017 runs
- Three methods of how to remove the flashback of running result box in VS
- Solution to the problem of console output window’s CMD flashing back when vs2015 writes C + + program
- The problem of running result window flash of vs2015
- [vs console program flashback]
- Solution to the problem of console flash in vs2017 runtime
- The solution of flashing back after the end of console program running
- Solution to the flash of visual studio 2017 running program