直接使用vscode运行代码出现以下错误 我的解决方案是使用终端输入命令g++ testjson.cpp -o testjson -std=c++11进行编译,生成一个testjson运行这个就可以。 muduoku同理