新手报到!一段程序请求指教!
//两个整数求和#include <stdio.h>
int main(void)
{
int a , b;
int sum;
printf("请输入两个整数:\n");
scanf("%i%i",&a,&b);
sum = a + b;
printf("这两个整数的和为:%i 。\n",sum);
return 0;
}
调试结果:
-------------------Configuration: No1 - Win32 Debug--------------------
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/No1.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.
No1.exe - 1 error(s), 0 warning(s)