vscode
#include<iostream>
int main()
{
std::cout<<"Enter:"<<std::endl;
int v1=0,v2=0;
std::cin>>v1>>v2;
std::cout<<"The sum of"<<v1<<"and"<<v2
<<"is"<<v1+v2<<std::endl;
return 0;
}
运行结果:
error: ld returned 1 exit status
终端进程“C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command gcc d:\codefield\codec\csingle\exercise\2.cpp -o d:\codefield\codec\csingle\exercise\bin\2.exe -g -Wall -static-libgcc -fexec-charset=GBK -std=c11”已终止,退出代码: 1。
按任意键关闭终端。
C++Primer的入门代码,这书也不给个编译器,就用了VSCode。咋办啊朋友们
是文件后置问题吗,用.c可以跑helloworld,.cpp .c++就这个错误
配置了吗?
把运行的插件装上了吗