简体   繁体   中英

C++ program won't print to cout in Xcode

I've never had trouble before, but my current C++/Xcode (7.0.1 on El Capitan) project refuses to print anything to cout (or cerr)--even a simple "Hello" (with endl) as the first line in the main program.

The debugger indicates that the program is running, it's just not outputting anything. It compiles and builds with no errors.

I tried creating a new "Hello, world" project and it works, and all my old projects work, so what could explain this one's failure?

尝试使用激活控制台命令:Cmd + Shift + C或在菜单中:视图,调试区域,激活控制台。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM