too few actual parameters
/* Note:Your choice is C IDE */#include "stdio.h"
int main()
{int x,n;
float p(int,int);
printf("\n input n & x:");
scanf("%d,%d",&n,&x);
printf("n=%d,x=%d\n",n,x);
printf("P%d(%d)=%6.2f\n",n,x,p(n,x));
return 0;
}
float p(int n,int x)
{if(n==0)
return(1);
else if(n==1)
return(x);
else
return(2*n-1)*x-p((n-1),x)-(n-1)*p((n-2,x))/n;
}
1.请问为什么说黄色的‘return':(warning , conversion from'int' to'float',possible loss of data.
2最后一条语句:.'p':too few actual parameters