Printing output on the Output Window in Visual C++ IDE

前端 未结 5 1728
生来不讨喜
生来不讨喜 2021-01-06 12:38

How do I print on the output window in Visual C++? The project that I am working on isn\'t of a console window project type. That\'s when I build and run it, it doesn\'t ope

5条回答
  •  自闭症患者
    2021-01-06 12:55

    You can use OutputDebugString("..."); to print to the Output window of Visual Studio. You have to #include though.

提交回复
热议问题