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:
- C language — to solve the problem of program flashback when programming (in VS)
- Two lines of code to solve your vs flashback problem
- Three methods of how to remove the flashback of running result box in VS
- Three solutions to command line flashback in VS
- Solution of vs program flashback problem
- Some solutions to the problem of windows flashback after vs running
- There are three ways to deal with the problem of vs (Visual Studio) 2017 flashback. I feel that none of them is the fundamental solution.
- Vs output flashback
- [math processing error] problem solving (the difference between F5 refresh page and Ctrl / shift + F5 refresh page)
- Solutions to some problems encountered in programming with vs2017
- In win10 environment, Ctrl + C cannot be copied and Ctrl + V cannot be pasted
- Prevent flashback after running code in VC 6.0
- Vs debug window flashback
- Vs code solves the problem that latex does not display references and [?] is displayed in the text
- XML tag has empty body less… (Ctrl+F1) Reports empty tag body. The validation works in XML / JSP
- OpenGL Programming Guide 8th Edition 9th Edition vs2015 vs2017 configuration method
- Vs series console flashback solution
- Open vs code through terminal using code command in Mac OS
- Flashback problem of output window of visual studio 2017 console program
- Code programming skills for novice programmers