如何在 XCode 中创建 C++ 控制台/终端项目?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2804261/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I create a C++ console/terminal project in XCode?
提问by George2
I am using MacBook Pro Mac OS 10.5 with related version of XCode. I am new to this development environment. I want to develop C++ code for a console/terminal-based application using XCode on Mac OS 10.5, but I did not figure out how to create such type of project using XCode. Could anyone briefly describe the steps or refer me to some related tutorials?
我正在使用 MacBook Pro Mac OS 10.5 和相关版本的 XCode。我是这个开发环境的新手。我想在 Mac OS 10.5 上使用 XCode 为基于控制台/终端的应用程序开发 C++ 代码,但我不知道如何使用 XCode 创建此类项目。任何人都可以简要描述这些步骤或向我推荐一些相关教程吗?
回答by Federico klez Culloca
File->New project
文件->新建项目
Then from the list on the left "Command line utility", and on the right "C++ tool".
然后从左侧的“命令行实用程序”列表和右侧的“C++ 工具”列表中。