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);
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);
Read More:
- The problem of window flash after C + + program is compiled and run
- The problem of flash back by pressing enter window when debugging or executing program in Visual Studio C
- The problem of running result window flash of vs2015
- Solution to the flash of running result of dev C / C + +
- Problem solving – vs debugging window flash solution
- How to solve the problem that the output results of C + + program written in VS2010 flash by
- Solve the problem of vscode window console “flash”
- How to solve the problem that the console window disappears in a flash after visual studio 2017 runs
- Solution to the flash of visual studio console program output window
- VS2010 debugging window flash solution
- Why does the result screen flash when visual studio runs the program?
- Solution to the problem of console output window’s CMD flashing back when vs2015 writes C + + program
- Three solutions to flash back of program running result box under vs
- Make DOS window wait and not flash back in VS
- The solution to the black window flash of running program on Visual Studio
- Visual studio console program output window flashed by
- Flashback problem of output window of visual studio 2017 console program
- Solve the problem of flash back in VS2010
- Windows 7 system, start to run input CMD, the window flashed by, disappeared
- The reasons and common solutions of vs flash back on the road of C + + Learning (with reasons attached)