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
- The problem of flash back by pressing enter window when debugging or executing program in Visual Studio C
- Solution to the flash of visual studio console program output window
- Solution to the problem of console output window’s CMD flashing back when vs2015 writes C + + program
- Flashback problem of output window of visual studio 2017 console program
- How to solve the problem that the output results of C + + program written in VS2010 flash by
- Problem solving – vs debugging window flash solution
- The solution to the black window flash of running program on Visual Studio
- Solve the problem of vscode window console “flash”
- The problem of running result window flash of vs2015
- How to solve the problem that the console window disappears in a flash after visual studio 2017 runs
- Solution of command line window flashback when visual studio runs C + + program
- Solve the problem that the newly installed CodeBlocks cannot be compiled and run
- Solution to stray’\357′ in program when gcc is compiled
- VS2010 debugging window flash solution
- C language program running results flash back how to do
- Visual studio console program output window flashed by
- C language — to solve the problem of program flashback when programming (in VS)
- Make DOS window wait and not flash back in VS
- Cannot run program “make” when compiling APM firmware with eclipse under Windows: launching failed problem