这段程序为什么在visual c++6.0上程序老是报错,但是我是照着谭浩强的《c语言程序设计》写的
#include<stdio.h>main()
{
int a,b,c;
scanf("%d,%d",&a,&b);
c=max(a,b);
printf("max is %d",c);
}
int max(int x,int y);
{int z;
z=x>y?x:y;
return z;
}
c(6) : warning C4013: 'max' undefined; assuming extern returning int
c(10) : error C2449: found '{' at file scope (missing function header?)
c(13) : error C2059: syntax error : '}'