expected ")" before ";" token#include#define B(x,y,z) ((x)>((y)>(z)?(y):(z))?(x):((y)>(z)?(y):(z))int main(){int a,b,c;printf("Please input three numbers:\n");scanf("%d%d%d",&a,&b,&c);printf("The Biggest number is %d",B(a,b,c));return 0;}第8行和
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/26 04:48:44
expected ")" before ";" token#include#define B(x,y,z) ((x)>((y)>(z)?(y):(z))?(x):((y)>(z)?(y):(z))int main(){int a,b,c;printf("Please input three numbers:\n");scanf("%d%d%d",&a,&b,&c);printf("The Biggest number is %d",B(a,b,c));return 0;}第8行和
expected ")" before ";" token
#include
#define B(x,y,z) ((x)>((y)>(z)?(y):(z))?(x):((y)>(z)?(y):(z))
int main()
{
int a,b,c;
printf("Please input three numbers:\n");
scanf("%d%d%d",&a,&b,&c);
printf("The Biggest number is %d",B(a,b,c));
return 0;
}
第8行和第10行有错,当时不知道错在哪里:
.c|8|error:expected ')' before ';' token
.c|10|error:expected ';' before '}' token
expected ")" before ";" token#include#define B(x,y,z) ((x)>((y)>(z)?(y):(z))?(x):((y)>(z)?(y):(z))int main(){int a,b,c;printf("Please input three numbers:\n");scanf("%d%d%d",&a,&b,&c);printf("The Biggest number is %d",B(a,b,c));return 0;}第8行和
#define B(x,y,z) ((x)>((y)>(z)?(y):(z))?(x):((y)>(z)?(y):(z)))