我写的程序如下 #include<math.h> void s(float left1,float right1); float e; main() {float a,b,left,right,h,k1,k2; printf("shu ru qu jian"); scanf("%f%f%f%f",&a,&b,&h,&e); left=a; right=left+h; while(right<=b) { k1=f(left);k2=f(right); if(k1*k2<=0) { printf("fa xian yi ge gen de qu jian%f%f",left,right); s(left,right); } printf("%f %f\n",left,right);getch(); left=right; right=left+h;
} } void float f(float x); {float x0,x1,e; int max,flage,i; printf("shu ru zui da die dai ci shu he jing du hai you chu zhi"); scanf("%d %f %f",&max,&e,&x0); for(i=1;i<=max;i++) {x1=f(x0); if(fabs(x1-x0)<e) {flage=1; break; } else x0=x1; } if(flage==0) printf("fang cheng bu shou lian"); else printf("fang cheng shou lian %f",x1); } float f(float x) {float f1; f1=x*x-x-2; return(f1); } 编译时出现3个问题 请大家帮助下 谢谢