第一次使用vscode
找不到build
#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;
}
launch.json中的"preLaunchTask"中要填入task.json中对应的label。