How to prevent output screen from disappear in Visual Studio 2013 C++ Compiler

后端 未结 10 1991
悲&欢浪女
悲&欢浪女 2020-12-24 08:23

I just downloaded Visual Studio 2013. When I compile C, it doesn\'t show me my output. The output screen will show up for a brief second and then disappears.



        
10条回答
  •  醉话见心
    2020-12-24 09:07

    Another option in addition to what's already been mentioned is to go into the properties for the project and change the Subsystem in the System section in the Linker options to Console (/SUBSYSTEM:CONSOLE). Then the console window will remain when you run the program using ctrl+f5 (Debug/Start without debugging).

    MSDN reference for the subsystem option.

提交回复
热议问题