請大俠幫我看看哪裡錯了
# include <stdio.h>int main(void)
{
int max (int x,int y int z);
int a,b,c,d;
scanf("%d,%d,%d",&a,&b,&c);
d =max (a,b,c);
printf("max is %d\n",d);
return(0);
}
int max (int x,int y,int z);
{
int q;
if (x > y),(x > z) q=x;
else if (y > x),(y > z) q=y;
else q=z;
return(q);
}
--------------------Configuration: 25 - Win32 Debug--------------------
Compiling...
25.cpp
C:\Documents and Settings\Administrator\桌面\25.cpp(4) : error C2144: syntax error : missing ',' before type 'int'
C:\Documents and Settings\Administrator\桌面\25.cpp(12) : error C2447: missing function header (old-style formal list?)
Error executing cl.exe.
25.exe - 2 error(s), 0 warning(s)