[求助]为什么会这样呢?老是运行错误
输入两个数 使之显示最大的那个#include<stdio.h>
main ()
{
int a;
int b;
int 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);
}
dev-c++编的,
四个致命错误
`scanf' undeclared (first use this function)
`max' undeclared (first use this function)
`printf' undeclared (first use this function)
`int max(int, int)' used prior to declaration
晕到吐血(我是一个大菜)
[此贴子已经被作者于2005-9-23 14:51:34编辑过]