visual c++ 6.0
--------------------Configuration:example2-Win32Debug--------------------Linking...LI...
--------------------Configuration: example2 - Win32 Debug--------------------
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/example2.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.
example2.exe - 1 error(s), 0 warning(s)
C语言初学者求教,明明编译时没有错误,组建时却出现了错误,求教怎么回事
补充,我输入的代码,复制粘贴过来的
#include<stdio.h>
mian ( )
{int a,b,sum;
printf ("Input the two numbers:");
scanf("%d%d",&a,&b);
sum=a+b;
printf ("sum=%d\n",sum);
} 展开
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/example2.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.
example2.exe - 1 error(s), 0 warning(s)
C语言初学者求教,明明编译时没有错误,组建时却出现了错误,求教怎么回事
补充,我输入的代码,复制粘贴过来的
#include<stdio.h>
mian ( )
{int a,b,sum;
printf ("Input the two numbers:");
scanf("%d%d",&a,&b);
sum=a+b;
printf ("sum=%d\n",sum);
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询