How can we make the application pause so that we can see the effect
First let’s use a simple program to explain the flashback problem, when we run the following program, we do not see the actual display effect
We can only see the result if we pause the program, so how do we pause the program?We will solve this problem in three ways.
Return 0; return 0; Add getchar() to the preceding line;
This function is waiting for input of a character, not input will always wait, so play a pause effect, to exit any key can!
View the results after running: press any key to exit after running
Return 0; return 0; I’m going to add while(1) to the front line;
Infinite loops don’t let you quit the program, you’re stuck here all the time, which is very useful. The only way to exit the program is to click the close button X in the black window in the upper right corner
View the results after running, only click the close button to end the program running.
Third, you need a special Windows header file and then add the statement system (” pause “).
Note: this method is more time-consuming, more harmful, try not to use this method
The result of operation,
First let’s use a simple program to explain the flashback problem, when we run the following program, we do not see the actual display effect
We can only see the result if we pause the program, so how do we pause the program?We will solve this problem in three ways.
Return 0; return 0; Add getchar() to the preceding line;
This function is waiting for input of a character, not input will always wait, so play a pause effect, to exit any key can!
View the results after running: press any key to exit after running
Return 0; return 0; I’m going to add while(1) to the front line;
Infinite loops don’t let you quit the program, you’re stuck here all the time, which is very useful. The only way to exit the program is to click the close button X in the black window in the upper right corner
View the results after running, only click the close button to end the program running.
Third, you need a special Windows header file and then add the statement system (” pause “).
Note: this method is more time-consuming, more harmful, try not to use this method
The result of operation,
Read More:
- Solution of vs program flashback problem
- How to solve the problem that the output results of C + + program written in VS2010 flash by
- In vs programming, the code of Ctrl + F5 is flashback
- To solve the problem of flashback of calling class function of glutsolidcube() in Win32 program
- Two lines of code to solve your vs flashback problem
- Some solutions to the problem of windows flashback after vs running
- Flashback problem of output window of visual studio 2017 console program
- error C2057: expected constant expression (Can the size of an array in C language be defined when the program is running?)
- Three methods of how to remove the flashback of running result box in VS
- Solution of command line window flashback when visual studio runs C + + program
- C language program running results flash back how to do
- Solution to the problem of console output window’s CMD flashing back when vs2015 writes C + + program
- There are three ways to deal with the problem of vs (Visual Studio) 2017 flashback. I feel that none of them is the fundamental solution.
- C language error: stray ‘\ 240’ in program|
- Solve the problem that the interface between C # WinForm program and Oracle doesn’t respond for a long time
- Three solutions to command line flashback in VS
- Solve the problem of flash back in VS2010
- Solve the problem of visual studio console flashback
- The problem of flash back by pressing enter window when debugging or executing program in Visual Studio C
- How to Solve MacOS Big Sur MySQL workbench flashback problem