我是新手,编译警告Function should return a value,请帮忙修改,谢谢~~
int max(int a,int b);main()
{
int x,y,z;
printf("input two numbers:\n");
scanf("%d,%d",&x,&y);
z=max(x,y);
printf("maxmum=%d",z);
}
int max(int a,int b)
{
if(a>b)return a;
else return b;
}
TC3.0编译时 警告:Function should return a value
[[it] 本帖最后由 jy02439868 于 2008-10-8 17:45 编辑 [/it]]