【发布时间】:2020-05-11 10:03:27
【问题描述】:
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (C:\Users\LENOVO\Desktop\projects\helloworld\helloworld.cpp).C/C++(1696)
cannot open source file "iostream"C/C++(1696)
每当我尝试包含或任何其他文件时,都会显示上述内容。我已经安装了 MinGw 并且已经设置了路径环境变量。我还在 Vs 代码中安装了 c/c++ Microsoft 扩展。我仍然不明白这里发生了什么。有人可以帮忙
#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;
}
这是我要运行的 sn-p。
【问题讨论】:
-
您能否使用您正在使用的确切
#include代码更新您的问题?我在那里看到双引号,这可能是你的问题。
标签: c++ visual-c++ c++14 configure