Preventing console window from closing on Visual Studio C/C++ Console application

前端 未结 21 1668
灰色年华
灰色年华 2020-11-21 23:42

This is a probably an embarasing question as no doubt the answer is blindingly obvious.

I\'ve used Visual Studio for years, but this is the first time I\'ve done any

21条回答
  •  礼貌的吻别
    2020-11-22 00:00

    Right click on your project

    Properties > Configuration Properties > Linker > System

    Select Console (/SUBSYSTEM:CONSOLE) in SubSystem option or you can just type Console in the text field!

    Now try it...it should work

提交回复
热议问题