Unicorns are hiring Python engineers in 2019. > >
Problem: When you first learn C++ to write Win32 Console Application using a different compiler, the resulting window may flash and disappear.
Some compilers are very good, and there are similar solutions in the example program. For example, in DevC ++, when creating a new non-empty C++ class, return 0; Before this: system(“PAUSE”); In Visual Studio there is no flash if you follow the steps, but when we press the shortcut key F5, the result will still flash. We can do this in return 0; STD ::cin.ignore(STD ::cin.rdbuf()->; in_avail()+1); That way it will show up, not just go over it. If you just want to see the result, there’s another way, and that’s in return 0; I’m going to say while(1);
Thank you @IM Xinye for reminding me. My posture has risen. When compiling, if you press F5 directly for debugging, there will be a flash of the situation. If Ctrl +F5 is not debugging, then there will be no flash.
Reproduced in: https://my.oschina.net/u/734295/blog/160510
Read More:
- The problem of C + + compile result window flash by
- Visual studio 2012, a complete collection of solutions to flash back windows after running
- The solution of flashing back after the end of console program running
- The reasons and common solutions of vs flash back on the road of C + + Learning (with reasons attached)
- Solution to the flash of visual studio console program output window
- Flashback problem of output window of visual studio 2017 console program
- Some solutions to the problem of windows flashback after vs running
- Visual studio console program output window flashed by
- C + + pauses the black window system (“pause”); (get ch(), getchar(), system (pause)’s connection and difference
- Insert keyframe giving keying set failed to insert any key frames
- Solution to the problem of console flash in vs2017 runtime
- VS2010 debugging window flash solution
- C++ cin.ignore Use of ()
- The problem of black box flash away in vs2019 debugging
- GPU hardware acceleration related problems, solve flash screen
- C + + uses system (“pause”) to pause black windows
- Modify the custom keyboard shortcut of visual studio code
- Solution to the problem of console output window’s CMD flashing back when vs2015 writes C + + program
- Opencv: the application can’t start normally
- Leetcode: 7. Reverse Integer(JAVA)