2-6-第一个C++程序(ios) 所需软件:a-Shell 进入App Store,搜索并下载a-Shell a-Shell(自带本地 Clang++ 编译器,不需要联网) 进入终端,用vim编写hello.cpp 示例:vim hello.cpp 按 i 进入编辑,编写第一个C++代码: #include <iostream> int main() { std::cout << “大家请关注南雁鸣雪!” << std::endl; return 0; } 按 ESC,输入 :wq 保存退出 编译运行(a-Shell 内置 clang++) 编译命令:clang++ hello.cpp -o nymx 运行命令:./nymx 显示结果为:大家请关注南雁鸣雪!