There are three ways to deal with the VS2017 flashback problem, but none of them is the ultimate solution.
1, Ctrl + F5
2, the system (” pause “);
3, getchar ();
Personally, I feel that these three methods are not the fundamental solution. I also have a headache when I meet this problem. People with obsessive-compulsive disorder see this phenomenon very uncomfortable.
I hope you can see this blog and if you have a better way, you can leave a comment below to benefit more people with your good way.
Advantages and disadvantages of various methods:
System (“pause”) : need to include the preprocessor header # include<; stdlib.h> Or # include< windows.h> Usage: Before the return in main Advantages: solve the flashback problem, small side effects Disadvantages: call system function, large memory overhead Getchar () : Usage: Before the return in main Advantages: low overhead, receive a character to end the program Cons: getchar() takes a string to denote the end. Sometimes we need to use this function in a function, which can confuse the two functions in a program and cause errors when the program runs. Reference links: http://blog.csdn.net/sinat_36101354/article/details/53155836
1, Ctrl + F5
2, the system (” pause “);
3, getchar ();
Personally, I feel that these three methods are not the fundamental solution. I also have a headache when I meet this problem. People with obsessive-compulsive disorder see this phenomenon very uncomfortable.
I hope you can see this blog and if you have a better way, you can leave a comment below to benefit more people with your good way.
Advantages and disadvantages of various methods:
System (“pause”) : need to include the preprocessor header # include<; stdlib.h> Or # include< windows.h> Usage: Before the return in main Advantages: solve the flashback problem, small side effects Disadvantages: call system function, large memory overhead Getchar () : Usage: Before the return in main Advantages: low overhead, receive a character to end the program Cons: getchar() takes a string to denote the end. Sometimes we need to use this function in a function, which can confuse the two functions in a program and cause errors when the program runs. Reference links: http://blog.csdn.net/sinat_36101354/article/details/53155836
Read More:
- Flash back after vs compiler running, processing method
- use cin.get () instead of system (“pause”) to avoid the flash of C + + programs
- Flashback problem of output window of visual studio 2017 console program
- The tutorial and difference of glew, glfw, glad and freeglut
- Vs debug window flashback
- C + + uses system (“pause”) to pause black windows
- Causes and solutions of black frame flashback after debugging visual studio 2017
- Solution of vs program flashback problem
- Solution to the flash of visual studio console program output window
- The most complete collection of solutions to Tortoise SVN Clean up failure
- Three methods of how to remove the flashback of running result box in VS
- VS2010 debugging window flash solution
- Solve the problem of flash back in VS2010
- Solution of command line window flashback when visual studio runs C + + program
- Problem solving – vs debugging window flash solution
- The problem of flash back by pressing enter window when debugging or executing program in Visual Studio C
- Two lines of code to solve your vs flashback problem
- C language — to solve the problem of program flashback when programming (in VS)
- [vs console program flashback]
- Vs2015 configuring OpenGL development environment: configuration of glfw library and glad Library