[求助]c语言调试问题?
我是新手,请问是什么错误呀???????#include<stdio.h>
#include<math.h>
float re(float u,float d)
{
float re;
re=1000*u*d/15.6;
return (re);
}
float h(float d,float k,float u,float l)
{
float r=0.027,x,h,a,y,z,m=0.318257,n=0.631779;
x=re(u,d);
if(x>2300)
{
a=d/l;
y=pow(a,m);
z=pow(x,n);
h=0.226421*r*y*z/d;
}
else
a=d/l;
y=pow(a,0.46642);
z=pow(x,0.453158);
h=0.866633*0.0283*y*z/d;
return(h);
}
float t(int n,float l,float d,float e,float k,float u,float ui,float iu,float ts,float t,float tf)
{
int i,m;
float p1=1.17,cp1=1.005,p2=8070,cp2=436,x,qv,a,v;
x=h(d,k,u,l);
a=n*l*k;
v=n*l*k*e;
qv=ui*iu/v;
for(m=0;m<101;m++)
{
for(i=0;i<11;i++)
tf=qv*ts/100*k/10/(u*ts/100-k/10)/(p1*cp1)-tf;
}
t=tf+ui*iu/(x*a)-(tf-t+ui*iu/x/a)*exp(-ts/p2/cp2);
return(t);
}
void main()
{
float u,d,k,ts,t,tf,n,l,e,ui,iu,y;
printf("input u,d,k,ts,t,tf,n,l,e,ui,iu:\n");
scanf("%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f",&u,&d,&k,&ts,&t,&tf,&n,&l,&e,&ui,&iu,&y);
y=t(n,l,d,e,k,u,ui,iu,ts,t,tf);
printf("the result is t=%f/n",y);
}
error C2064: term does not evaluate to a function
这一行错了,不知道怎么回事,
y=t(n,l,d,e,k,u,ui,iu,ts,t,tf);