max’should have a prototype
#include <stdio.h>void main()
{
int a,b,c;
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);
}
各位大侠 本人初学 程序运行到c=max(a,b);就停止 出现错误 为‘max’should have a prototype