求组,编译错误
#include <stdio.h>#include <iostream>
int main(void)
{
int max(int a,int b);
int (*p)();
int a,b,c;
p=max;
scanf("%d%d",&a,&b);
c=max(a,b);
printf("a=%d,b=%d,max=%d\n",a,b,c);
system("pause");
return 0;
}
int max(int x,int y)
{
int z;
if(x>y) z=x;
else z=y;
return z;
}