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:
- Flashback problem of output window of visual studio 2017 console program
- Solution to the flashback of visual studio output window
- Solution of command line window flashback when visual studio runs C + + program
- Solution of vs program flashback problem
- Solve the problem of visual studio console flashback
- Causes and solutions of black frame flashback after debugging visual studio 2017
- Two lines of code to solve your vs flashback problem
- Some solutions to the problem of windows flashback after vs running
- Solution to the flash of visual studio console program output window
- C language — to solve the problem of program flashback when programming (in VS)
- Vs (Visual Studio) encountered a solution that could not open iostream
- The solution of windows not flashing back when visual studio console program is running
- Solution to CUDA installation failure problem visual studio integration failed
- In vs programming, the code of Ctrl + F5 is flashback
- Solve the problem of flash back in Visual Studio 2010
- Three methods of how to remove the flashback of running result box in VS
- Vs debug window flashback
- The solution to the black window flash of running program on Visual Studio
- Solution to the flash of visual studio 2017 running program
- Three solutions to command line flashback in VS