C程序检验。请问有什么错误,执行时总是提示; error C2085: 'a' : not in formal parameter list
#include<stdio.h>intmain()floata,b,c,t;scanf("%f,%f,%f",&a,&b,&c);if(a>b){t=a;a=b;t=b...
#include<stdio.h>
int main()
float a,b,c,t;
scanf("%f,%f,%f",&a,&b,&c);
if(a>b)
{t=a;a=b;t=b;}
if(a>c)
{t=a; a=c; c=t;}
if(b>c)
{t=b; b=c; c=t;}
print("%a5.2f,%5.2f,%5.2f\n");
return 0;
} 展开
int main()
float a,b,c,t;
scanf("%f,%f,%f",&a,&b,&c);
if(a>b)
{t=a;a=b;t=b;}
if(a>c)
{t=a; a=c; c=t;}
if(b>c)
{t=b; b=c; c=t;}
print("%a5.2f,%5.2f,%5.2f\n");
return 0;
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询