简体   繁体   English

在xcode上运行C ++程序

[英]running C++ program on xcode

when I run a simple C++ program on Xcode, the compiler says it's built successfully, but there is no output. 当我在Xcode上运行一个简单的C ++程序时,编译器说它已经成功构建,但是没有输出。 how can I make the result show up? 如何让结果显示出来? thanks! 谢谢!

Cmd - Enter is the default "build and run" keyboard hotkey. Cmd - Enter是默认的“构建并运行”键盘热键。 Once you've pressed that, use Cmd - Shift - R to open the console and see your program's output. 按下后,使用Cmd - Shift - R打开控制台并查看程序的输出。

in the tab Groups and file, under the xcode icon of your project there are 3 folders, Source, Documentation, Products, under Products there is your executable. 在选项卡组和文件中,在项目的xcode图标下有3个文件夹,Source,Documentation,Products,Products下有可执行文件。 hth 心连心

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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