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

后端 未结 10 1968
悲&欢浪女
悲&欢浪女 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 08:44

    I first used the metioned getchar() and breakpoints solutions but this is no good if you want the program to end (for example if you are using a memory leak detector). I got over this by redirecting the output to a file. You can do this by inserting >output.txt in the command line option under the debug section of project properties

提交回复
热议问题