小弟刚来,VC6调试中出现一点问题,请各位前辈指点指点,感激不尽
# include <stdio.h>void main()
{
int max(int x,int y);
int a,b,c;
printf("please input two number");
scanf("%d,%d\n",&a,&b);
c=max(a,b);
printf("max=%d\n",c);
}
int max(int x,int y);
{ int z;
if (x>y) z=x;
else z=y;
return(z);
}
c:\users\user\desktop\新建文件夹\2\2.c(12) : error C2449: found '{' at file scope (missing function header?)
c:\users\user\desktop\新建文件夹\2\2.c(16) : error C2059: syntax error : '}'
执行 cl.exe 时出错.