Method 1: When running a program, instead of executing it with the F5 key, use Ctrl+F5 to execute it, which means “Start Execution (Not Debugging)”, so it won’t flash by.
Method 2: Add this console.readline () at the end of your code; That is, “wait for user input,” so the DOS window won’t close until you hit enter
Method 3: Add console.readKey () at the end of the program; The DOS window will not exit until it receives a character.
Method 4: Run the program under CMD.
- Solution to the flash of visual studio console program output window
- Flashback problem of output window of visual studio 2017 console program
- The solution of console flash in C + +
- The solution of flashing back after the end of console program running
- C language — to solve the problem of program flashback when programming (in VS)
- Visual studio 2012, a complete collection of solutions to flash back windows after running
- VS2010 debugging window flash solution
- Solution of vs program flashback problem
- Solution to the flash of visual studio 2017 running program
- The problem of window flash after C + + program is compiled and run
- The reasons and common solutions of vs flash back on the road of C + + Learning (with reasons attached)
- Three solutions to flash back of program running result box under vs
- Solution to the problem of console flash in vs2017 runtime
- C + + pauses the black window system (“pause”); (get ch(), getchar(), system (pause)’s connection and difference
- The perfect solution of VS2010 console program running in a flash
- Solution to the problem of console output window’s CMD flashing back when vs2015 writes C + + program
- Why does the result screen flash when visual studio runs the program?
- Causes and solutions of black frame flashback after debugging visual studio 2017
- Some solutions to the problem of windows flashback after vs running
- use cin.get () instead of system (“pause”) to avoid the flash of C + + programs