关于vscode
  • 板块学术版
  • 楼主hoyoo
  • 当前回复1
  • 已保存回复1
  • 发布时间2020/11/23 13:29
  • 上次更新2023/11/5 07:28:37
查看原帖
关于vscode
370419
hoyoo楼主2020/11/23 13:29

#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;
}

代码运行后在终端显示 D:\Microsoft VS Code>cd "c:\Users\f\Documents" && g++ 1t.cpp -o 1t && "c:\Users\f\Documents"1t g++: error: 1t.cpp: No such file or directory g++: fatal error: no input files compilation terminated. 怎么办

2020/11/23 13:29
加载中...