我只想尝试用Visual Studio代码编写代码 . 我已将vscode 1.18.1安装到我的笔记本电脑(Win10-64) .

键入以下代码我收到错误:

#include <iostream>
using namespace std;
int main()
{
    std::cout << "Hello world!" <<endl;
    return 0;
}

应该没有错误发生 . C:\ Users \ Harri \ OneDrive \ Tiedostot \ Demo2.vscode \ c_cpp_properties.json -content:

“path”:[“/ usr / include”,“/ usr / local / include”,“$ ”],

第1行的问题/错误:

“检测到#include错误 . 请更新您的includePath . 此解压缩程序将为此翻译单元(C:\ Users \ Harri \ OneDrive \ Tiedostot \ Demo2 \ Calc.cpp)提供IntelliSense功能 . ”

“无法打开源文件”iostream“”