满意答案
ss6710988
2013.10.18
采纳率:46% 等级:12
已帮助:14267人
函数分f1,f2错了,改为:
float f1(int x,int m,float n)
{float t=1.0;int i;for(i=1;i<=x*m;i++)t=t*f2(m,n);return t;}
float f2(int m1,float n1)
{
float h=1.0;
return h*(1+n1);
}
完全代码如下(float用double替换不会有问题,但用float足够了,用long double出错,但具体原因不清楚):
#include
#include
#define ben 20000
#define N 6
#define a 1
#define b 2
#define c 3
<