..马上要交了...# includeint main(){\x05int max(int x,int y,int z)\x05{\x05\x05int m,n;\x05if(x>y)m=x;\x05else m=y;\x05if(m>z)n=m;\x05else n=z;\x05return(n);}\x05\x05int a,b,c,d;\x05scanf("%d,%d,%d",&a,&b,&c);d=max(a,b,c);printf("max=%d\n",d);ret
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 05:34:18
..马上要交了...# includeint main(){\x05int max(int x,int y,int z)\x05{\x05\x05int m,n;\x05if(x>y)m=x;\x05else m=y;\x05if(m>z)n=m;\x05else n=z;\x05return(n);}\x05\x05int a,b,c,d;\x05scanf("%d,%d,%d",&a,&b,&c);d=max(a,b,c);printf("max=%d\n",d);ret
..马上要交了...
# include
int main()
{
\x05int max(int x,int y,int z)
\x05{
\x05\x05int m,n;
\x05if(x>y)m=x;
\x05else m=y;
\x05if(m>z)n=m;
\x05else n=z;
\x05return(n);
}
\x05\x05int a,b,c,d;
\x05scanf("%d,%d,%d",&a,&b,&c);
d=max(a,b,c);
printf("max=%d\n",d);
return 0;
}
--------------------Configuration:Cpp4 - Win32 Debug--------------------
Compiling...
Cpp4.cpp
E:\Cpp4.cpp(5) :error C2601:'max' :local function definitions are illegal
执行 cl.exe 时出错.
Cpp4.exe - 1 error(s),0 warning(s)
..马上要交了...# includeint main(){\x05int max(int x,int y,int z)\x05{\x05\x05int m,n;\x05if(x>y)m=x;\x05else m=y;\x05if(m>z)n=m;\x05else n=z;\x05return(n);}\x05\x05int a,b,c,d;\x05scanf("%d,%d,%d",&a,&b,&c);d=max(a,b,c);printf("max=%d\n",d);ret
# include
int max(int x,int y,int z)
{
int m,n;
if(x>y)m=x;
else m=y;
if(m>z)n=m;
else n=z;
return(n);
}
int main()
{
int a,b,c,d;
scanf("%d%d%d",&a,&b,&c);
d=max(a,b,c);
printf("max=%d\n",d);
return 0;
}
这是神马鬼画符
xzc