c语言error_quit,c++ - Visual Studio上的基本C ++程序代码错误:终端进程终止,退出代码为:1 [保留] - 堆栈内存溢出...

我正在尝试编译基本的“ Hello World”程序,并且正在使用Visual Studio Code。 程序是用C ++编写的,当我按CONTROL-SHİFT-B时,会出现如下错误:

终端进程以退出代码终止:1

这是我的task.json:

{

// 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文件:

{

"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

}

这是我要执行的程序:

#include

using namespace std;

int main()

{

cout << "Hello, World!";

return 0;

}

我该如何解决这个问题?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值