下载Xcode
打开xcode,如下图所示:
选择create a new Xcode project接下来按照下图选择:
点击next:
设置project 的名称等参数,且选择c++点击create后:
要先设置一下Xcode的一般设置:
运行后在右下角:
其中代码:
//
// main.cpp
// test5
//
// Created by 哈哈 on 16/3/25.
// Copyright © 2016年 哈哈. All rights reserved.
//
#include <iostream>
int main(int argc, const char * argv[]) {
// insert code here...
std::cout << "Hello, World!\n";
return 0;
}
为软件提供的。