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:
- Solution to the flash of visual studio console program output window
- Flashback problem of output window of visual studio 2017 console program
- Solution to the flashback of visual studio output window
- The solution of flashing back after the end of console program running
- Flash back of running program in Visual Studio 2017
- [vs console program flashback]
- In vs programming, the code of Ctrl + F5 is flashback
- Solution of vs program flashback problem
- [solution] visual studio will exit automatically after debugging the program
- Three methods of how to remove the flashback of running result box in VS
- Solution to flash back of visual studio 2017 running program
- Solve the problem of visual studio console flashback
- Solve the problem of flash back in VS2010
- Three solutions to command line flashback in VS
- Problem solving – vs debugging window flash solution
- The perfect solution of VS2010 console program running in a flash
- VS2010 debugging window flash solution
- Solution to the problem of console flash in vs2017 runtime
- The reasons and common solutions of vs flash back on the road of C + + Learning (with reasons attached)
- Visual studio 2012, a complete collection of solutions to flash back windows after running