Four ways:
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.
Read More:
- The problem of flash back by pressing enter window when debugging or executing program in Visual Studio C
- VS2010 debugging window flash solution
- Solve the problem of flash back in VS2010
- 2、 Solutions to the problem of flash back in vs2017
- Solution to the problem of console output window’s CMD flashing back when vs2015 writes C + + program
- Three solutions to flash back of program running result box under vs
- Problem solving – vs debugging window flash solution
- Flash back after vs compiler running, processing method
- The problem of running result window flash of vs2015
- The reasons and common solutions of vs flash back on the road of C + + Learning (with reasons attached)
- Flash back record of vs2017 installation process
- Solution for flash back of vs2015 running interface
- Flash back of running program in Visual Studio 2017
- Solution to the flash of visual studio console program output window
- Solution to the problem of console flash in vs2017 runtime
- The perfect solution of VS2010 console program running in a flash
- Solve the problem of flash back in Visual Studio 2010
- JNI calls the add function of list in Java to flash back
- How to solve the problem that the console window disappears in a flash after visual studio 2017 runs
- Eclipse flash back does not open the problem