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.

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

Read More: