刚学C语言,出现这个错误请教各位![Error] 'max' was not declared in this scope
#include <stdio.h>#include <stdlib.h>
#include <string.h>
#include <math.h>
main ()
{
int a,b,c; /* defined varitions */
scanf("%d,%d",&a,&b);
c=max (a,b);
printf ("max=%d",c);
}
int max (int x,int y);
{
int z;
if (x>y)z=x;
else z=y;
return (z);
}
搜索