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:
- How to solve the problem that the output results of C + + program written in VS2010 flash by
- Three solutions to flash back of program running result box under vs
- Solution to flash back of visual studio 2017 running program
- Flash back of running program in Visual Studio 2017
- error C2057: expected constant expression (Can the size of an array in C language be defined when the program is running?)
- The problem of flash back by pressing enter window when debugging or executing program in Visual Studio C
- Visual studio 2012, a complete collection of solutions to flash back windows after running
- Flash back after vs compiler running, processing method
- Solution to the flash of running result of dev C / C + +
- The solution of flashing back after the end of console program running
- Flash back problem of Python running
- C language — to solve the problem of program flashback when programming (in VS)
- Solution for flash back of vs2015 running interface
- The reasons and common solutions of vs flash back on the road of C + + Learning (with reasons attached)
- Solution to the problem of console output window’s CMD flashing back when vs2015 writes C + + program
- Solution to the flash of visual studio 2017 running program
- The problem of window flash after C + + program is compiled and run
- The solution of windows not flashing back when visual studio console program is running
- Vscode running C program error luanch:program does not exsist
- The perfect solution of VS2010 console program running in a flash