添加.cpp文件和.vscode文件夹,添加task.json,内容如下: {"version":"2.0.0","tasks":[{"label":"Build with Clang","type":"shell","command":"clang++","args":["${file}","-std=c++11","-o","${workspaceFolder}/out/${fileBasenameNoExtension}.out","-g","--debug"],"group":"build"...