楼主你好~你只是声明了max函数,但是并没有定义它,因此会出现错误。更改一下:#include int max (int a,int b,int c);void main (void){int a=1,b=2,c=3;int y=max(a,b,c);printf("\nthe max number is %d\n",y);} int max (int a,int b,int c)//定义max函数,使其实现功能{
int temp;
temp=(a>b? a:b);
//先比较a、b大小,把大的值赋给temp
temp=...
|