Write at the front:
This blog post introduces a little annoying problem solving that isn’t a bug. Programming with Visual Studio often uses the console output window, but there is always a situation where the window flashes past and it is difficult to see the output of the program. Here, I write a blog post to record it, so as not to forget or make similar mistakes in the same type of problem.
Solution:
1. In the last line of the program, return 0, add system(” pause “) or getchar(); It solves some problems, which I often do when I do some OJ tests in order to test in my IDE;
2. Don’t Press F5 to run the program, Ctrl + F5 instead, a window will be displayed like this: “Press any key tocontinue…” The words. The reason is that F5 is in Debugging mode, while CTRL +F5 is in Start Without Debugging mode. I found this on the Internet. Can really solve the problem, but their lack of practical theoretical knowledge to support, so in the future to read a lot of attention to the process.
Read More:
- Solution to the flash of visual studio console program output window
- Flashback problem of output window of visual studio 2017 console program
- 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
- Some solutions to the problem of windows flashback after vs running
- VS2010 debugging window flash solution
- How to solve the problem that the console window disappears in a flash after visual studio 2017 runs
- Causes and solutions of black frame flashback after debugging visual studio 2017
- The reasons and common solutions of vs flash back on the road of C + + Learning (with reasons attached)
- Visual studio code shortcut
- Make DOS window wait and not flash back in VS
- Python3 reports an error [errno 5] input / output error. Print is used when there is no stdout
- C + + pauses the black window system (“pause”); (get ch(), getchar(), system (pause)’s connection and difference
- Linux command line cursor moving skills
- IntelliJ idea debugging Java 8 stream
- Centos7 installation interface without interface
- Solution of vs program flashback problem
- use cin.get () instead of system (“pause”) to avoid the flash of C + + programs