Some solutions to the problem of windows flashback after vs running

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)

#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: