用Xcode來寫C++程序[1] 新建C++項目工程
第一節從新建工程並編譯C++源碼開始
新建工程
源碼:
// // main.cpp // YeHelloWorld // // Created by XianMingYou on 15/3/5. // Copyright (c) 2015年 XianMingYou. All rights reserved. // #include <iostream> using namespace std; int main() { cout << "Hello, World!\n" << endl; return 0; }
打印信息:
--------------------------------------------------
Hello, World!
Program ended with exit code: 0