C语言\tes.c(3) :error C2085:'a' :not in formal parameter list#include int main()int a,b,c;int m1,m2,m3;scanf("%d%d%d",&a,&b,&c);if(a>b){if(a>c)m1=a;if(b>c){m2=b;m3=c;}else { m1=c;m2=a;m3=b;} }else{if(b>c)m1=b;if(a>c){m2=a;m3=c;}else{m1=c;m2=b;m3=a;

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 09:18:24
C语言\tes.c(3):errorC2085:''a'':notinformalparameterlist#includeintmain()inta,b,c;intm1,m2,m3;scanf("%d%

C语言\tes.c(3) :error C2085:'a' :not in formal parameter list#include int main()int a,b,c;int m1,m2,m3;scanf("%d%d%d",&a,&b,&c);if(a>b){if(a>c)m1=a;if(b>c){m2=b;m3=c;}else { m1=c;m2=a;m3=b;} }else{if(b>c)m1=b;if(a>c){m2=a;m3=c;}else{m1=c;m2=b;m3=a;
C语言\tes.c(3) :error C2085:'a' :not in formal parameter list
#include
int main()
int a,b,c;
int m1,m2,m3;
scanf("%d%d%d",&a,&b,&c);
if(a>b)
{
if(a>c)
m1=a;
if(b>c)
{
m2=b;
m3=c;
}
else
{
m1=c;
m2=a;
m3=b;
}
}
else
{
if(b>c)
m1=b;
if(a>c)
{
m2=a;
m3=c;
}
else
{
m1=c;
m2=b;
m3=a;
}
}
printf("m1,m2,m3");
return 0;

C语言\tes.c(3) :error C2085:'a' :not in formal parameter list#include int main()int a,b,c;int m1,m2,m3;scanf("%d%d%d",&a,&b,&c);if(a>b){if(a>c)m1=a;if(b>c){m2=b;m3=c;}else { m1=c;m2=a;m3=b;} }else{if(b>c)m1=b;if(a>c){m2=a;m3=c;}else{m1=c;m2=b;m3=a;
#include
int main() //后面用{}括起来,还有你的主函数里的判断条件不知对不对,我这没装程序不能
//试试看,不行的话再试试我的
{
int a,b,c;
int m1,m2,m3;
scanf("%d%d%d",&a,&b,&c);
if(a>b)
{
if(a>c)
{ m1=a;
if(b>c)
{ m2=b;
m3=c;
}
else
{ m2=c;
m3=b;
}
}
else
{ m1=c;
m2=a;
m3=b;
}
}
else
{
if(b>c)
{ m1=b;
if(a>c)
{ m2=a;
m3=c;
}
else
{ m2=c;
m3=a;
}
}
else
{ m1=c;
m2=b;
m3=a;
}
}
printf("m1,m2,m3");
return 0;
}