终端进程终止,退出代码为:1。有什么方法可以修复它吗? | 您所在的位置:网站首页 › vscode终端进程已终止退出代码1 › 终端进程终止,退出代码为:1。有什么方法可以修复它吗? |
我正在尝试用Visual Studio代码编译一个基本的"Hello World“代码。但是我是个编程新手,所以我不明白“终端进程用退出代码终止: 1”是什么意思。 这是我的task.json: 代码语言:javascript复制{ // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ { "label": "echo", "type": "shell", "command": "C:/MinGW/bin/g++", "args": [ "-g", "main.cpp" ], "group": { "kind": "build", "isDefault": true } } ] }这是一个c_cpp_properties.json文件: 代码语言:javascript复制{ "configurations": [ { "name": "Win32", "includePath": [ "${workspaceRoot}/**" ], "defines": [ "_DEBUG", "UNICODE", "_UNICODE" ], "compilerPath": "C:\\MinGW\\bin\\gcc.exe", "cStandard": "c11", "cppStandard": "c++17", "intelliSenseMode": "clang-x64", "browse": { "path": [ "${workspaceRoot}/", "C:\\MinGW\\lib\\gcc\\mingw32\\6.3.0\\include\\c++" ], "limitSymbolsToIncludedHeaders": true, "databaseFilename": "" } } ], "version": 4 }这就是我正在尝试执行的程序: 代码语言:javascript复制#include using namespace std; int main() { cout |
CopyRight 2018-2019 实验室设备网 版权所有 |