Solution to the problem of console output window’s CMD flashing back when vs2015 writes C + + program

1. Open project properties

2. Locate the linker and select System.

3. Select “/ CONSOLE” in the SUBSYSTEM

4. Execute (Ctrl + F5) at this point and the window will not flash back. Note that if you are debugging (F5), it will still flash back.

Read More: