Learn to compile C language friends may encounter such a problem, program debugging when there is no error, but when running the results will find that the program results flash back, resulting in no results. The following solutions are given for such problems.
Take the simplest program, for example

} getchar();} getchar(); Can. It is important to note that this approach is not suitable for all programs, but we will look at the second approach next.

Method 2: & lt; 1> Start by adding the header file #include <; stdlib.h> As shown in figure
& lt; 2> Then write a line at the end of the program’s main function (system(“pause”));

Obviously, when the first method does not work, the second method can be used, and it works in all cases.
Take the simplest program, for example

} getchar();} getchar(); Can. It is important to note that this approach is not suitable for all programs, but we will look at the second approach next.

Method 2: & lt; 1> Start by adding the header file #include <; stdlib.h> As shown in figure

& lt; 2> Then write a line at the end of the program’s main function (system(“pause”));

Obviously, when the first method does not work, the second method can be used, and it works in all cases.
Read More:
- Three solutions to flash back of program running result box under vs
- Solution to the flash of running result of dev C / C + +
- Flash back after vs compiler running, processing method
- Solve the problem of flash back in Visual Studio 2010
- C language — to solve the problem of program flashback when programming (in VS)
- C + + pauses the black window system (“pause”); (get ch(), getchar(), system (pause)’s connection and difference
- OpenGL program running prompt glut32.dll missing problem
- A series of problems in configuring OpenGL development environment in vs2015
- The solution of flashing back after the end of console program running
- The reasons and common solutions of vs flash back on the road of C + + Learning (with reasons attached)
- Solution to stray’\357′ in program when gcc is compiled
- use cin.get () instead of system (“pause”) to avoid the flash of C + + programs
- How to solve the problem that the output results of C + + program written in VS2010 flash by
- Two lines of code to solve your vs flashback problem
- Using DOS command to run Java program
- Visual studio 2012, a complete collection of solutions to flash back windows after running
- The solution of console flash in C + +
- Solve the problem of flash back in VS2010
- Small problems encountered in compiling OpenGL under VS2010
- Causes and solutions of black frame flashback after debugging visual studio 2017