写下来的话要费很长时间,我截图行不行
晕,我让你把InvSqrt写外面,你还是写在main里面float InvSqrt(...){...}
int main(){...}
应该是这样的。
下面一个{括号前面加上int main()看看
试试看 if(i != n) printf("%.6f\n", r); else printf("%.6f", r);