这个程序编译没错误运行不了为什么?
#include<stdio.h>void main()
{
float a,b,c,t;
scanf("%f,%f,%f",&a,&b,&c);
if(a>b)
{
t=a;
a=b;
b=t;
}
if(a>c)
{
t=a;
a=c;
b=t;
}
if(b>c)
{
t=b;
b=c;
c=t;
}
printf("%5.2f,%5.2f,%5.2f\n",a,b,c);
}
这个程序为什么运行不出来?错误提示为:
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/v.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.
v.exe - 1 error(s), 0 warning(s)