Recently, I do not know where VS has a problem. Every time I write the code, after compiling and running the code, the window is always flashing back. However, I do not want to reinstall, which is too troublesome. Here are some of the solutions I have put together. Please add more:
(Take the following code as an example)
(Take the following code as an example)
#include<iostream>
using namespace std;
int main()
{
cout << "hello world" << endl;
return 0;
}
1. Press Ctrl+F5 to run the program
(This method only solves general flashbacks and may not be very useful)
2. Right-click on the project ->; Property – & gt; Configure properties ->; Connector – & gt; System – & gt; Subsystem – & gt; SUBSYSTEM right drop down window selection CONSOLE (/SUBSYSTEM:CONSOLE)
Int main(); int main(); system(“pause”);
4. C uses getchar() before return, C ++ uses cin. Get ();
Inline void keep_window_open(){char ch; cin> > ch; }, and then call the function at the end of main
6. Set breakpoint debugging, press F9 to set breakpoint, press F10 to step debugging, find the problem through debugging
Read More:
- Three solutions to command line flashback in VS
- Three methods of how to remove the flashback of running result box in VS
- Solution of vs program flashback problem
- Two lines of code to solve your vs flashback problem
- Visual studio 2012, a complete collection of solutions to flash back windows after running
- C language — to solve the problem of program flashback when programming (in VS)
- Three solutions to flash back of program running result box under vs
- 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.
- The problem of running result window flash of vs2015
- In vs programming, the code of Ctrl + F5 is flashback
- 2、 Solutions to the problem of flash back in vs2017
- Flashback problem of output window of visual studio 2017 console program
- Causes and solutions of black frame flashback after debugging visual studio 2017
- Solve the problem of visual studio console flashback
- Vs output flashback
- Vs debug window flashback
- Configuration problem of pcl1.9.1 under Windows 10 vs2017 (solved)
- Solution for flash back of vs2015 running interface
- Solution to the problem of console flash in vs2017 runtime
- Solution to the flashback of visual studio output window