编程语言
首页 > 编程语言> > mbp m1 c++ vscode配置

mbp m1 c++ vscode配置

作者:互联网

  1. 新建一个空目录
    mkdir oj
    cd oj
  2. 创建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;
}
  1. 参照下面的参考文献

标签:vscode,com,C++,msg,m1,https,cpp,include,mbp
来源: https://www.cnblogs.com/mercurysun/p/15369327.html