- 新建一个空目录
mkdir oj
cd oj
- 创建cpp文件 helloworld.cpp
复制以下测试代码:
#include <iostream>
#include <vector>
#include <string>
using namespace std;
int main()
{
vector<string> msg {"Hello", "C++", "World", "from", "VS Code", "and the C++ extension!"};
for (const string& word : msg)
{
cout << word << " ";
}
cout << endl;
}
3a314e7237ab 10 月前
122b2ee9ed3e 10 月前