标签: c++ visual-studio-code
我正在用VSCode编写C ++。 nullptr用红色草书线标记,并显示identifier "nullptr" is undefined。不过,我可以使用代码运行程序扩展程序完美地运行此代码。但是如何摆脱VSCode中的这种错误警报?
nullptr
identifier "nullptr" is undefined
答案 0 :(得分:0)
正如注释中所指出的,在项目文件夹中,只需找到.vscode/c_cpp_properties.json文件并将C ++版本更改为C11。问题已解决。
.vscode/c_cpp_properties.json