开发者

Xcode not showing console output; How do you flush the console?

开发者 https://www.devze.com 2023-01-08 07:19 出处:网络
I have a simple C++ program that uses cout and printf to log stuff and it is only showing at the end when the program is closed but if I\'m stepping through the program using debug nothing is shown. D

I have a simple C++ program that uses cout and printf to log stuff and it is only showing at the end when the program is closed but if I'm stepping through the program using debug nothing is shown. Did anybo开发者_StackOverflow中文版dy have this problem?


If you're practicing c try fflush, if c++ try cout << endl; each time you want to print.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号