帮我看看程序哪错了。。。。
#include <stdio.h>void main()
{
int max(int 5,int 8);
int a,b,c;
scanf("%d,%d",&a,&b);
c=max(a,b);
printf("max=%d\n",c);
}
int max(int 5,int 8)
{
int z;
if (5>8) z=x
else z=y
return(z)
}
在VC6.0里运行不了
--------------------Configuration: 5 - Win32 Debug--------------------
Compiling...
5.c
C:\Documents and Settings\Administrator\5.c(4) : error C2143: syntax error : missing ')' before 'constant'
C:\Documents and Settings\Administrator\5.c(4) : error C2143: syntax error : missing ';' before 'constant'
C:\Documents and Settings\Administrator\5.c(4) : error C2059: syntax error : 'type'
C:\Documents and Settings\Administrator\5.c(4) : error C2059: syntax error : ')'
C:\Documents and Settings\Administrator\5.c(5) : error C2143: syntax error : missing ';' before 'type'
C:\Documents and Settings\Administrator\5.c(6) : error C2065: 'a' : undeclared identifier
C:\Documents and Settings\Administrator\5.c(6) : error C2065: 'b' : undeclared identifier
C:\Documents and Settings\Administrator\5.c(7) : error C2065: 'c' : undeclared identifier
C:\Documents and Settings\Administrator\5.c(7) : warning C4020: 'max' : too many actual parameters
C:\Documents and Settings\Administrator\5.c(10) : error C2143: syntax error : missing ')' before 'constant'
C:\Documents and Settings\Administrator\5.c(10) : error C2143: syntax error : missing '{' before 'constant'
C:\Documents and Settings\Administrator\5.c(10) : error C2059: syntax error : '<Unknown>'
C:\Documents and Settings\Administrator\5.c(10) : error C2059: syntax error : ')'
Error executing cl.exe.
5.exe - 12 error(s), 1 warning(s)