求大佬帮忙看看,新手求带
#include<stdio.h>float fun(float *p)
{
int i,j;
float s1,s2;
s1=0;
s2=0;
float b1,b2,b3,b4,b5,b6,b7,b8;
b1=1;b2=2;b3=3;b4=4;b5=5;b6=6;b7=7;b8=8;
for (i=0;i<=80;i=i+20)
for (j=0;j<=200;j=j+20)
{
s1=b1+b2*j+b3*j*j+b4*i+b5*i*i;
s2=1+b6*j+b7*i+b8*i*i;
}
return s1/s2;
}
void main()
{ int i,j;
float s[]={0};
for (i=0;i<=200;i=i+20)
{*s = i;}
float t[]={0};
*t=fun (s);
printf("the result is: %f\n", *t);
}
这是我自己编写的,但是编译不出来