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:
- Flashback problem of output window of visual studio 2017 console program
- Solution to the flash of visual studio console program output window
- The problem of flash back by pressing enter window when debugging or executing program in Visual Studio C
- Solution to the flashback of visual studio output window
- How to solve the problem that the console window disappears in a flash after visual studio 2017 runs
- Solution to the problem of console output window’s CMD flashing back when vs2015 writes C + + program
- Solution of command line window flashback when visual studio runs C + + program
- The solution to the black window flash of running program on Visual Studio
- The solution of windows not flashing back when visual studio console program is running
- Windows 7 system, start to run input CMD, the window flashed by, disappeared
- Solve the problem of visual studio console flashback
- Visual studio 2015 compiler, console flash solution
- Why does the result screen flash when visual studio runs the program?
- Flash back of running program in Visual Studio 2017
- Visual studio 2017, OpenGL program running prompt glut32.dll missing solution
- Solution to the flash of visual studio 2017 running program
- [solution] visual studio will exit automatically after debugging the program
- Solution to flash back of visual studio 2017 running program
- How to solve the problem that the output results of C + + program written in VS2010 flash by
- Solve the problem of error running console reported by pycharm Python console