[讨论]请问错在哪里啊
main(){float s();
int n;
scanf("%d",&n);
printf("s(%d)=%f\n",n,s(n));
}
float s(int n);
{float s;
if(n==1)
return(1.0);
else return(s(n-1)+n*n);
}编译时有错误
提示信息是declaration syntax error
请问这是怎么回事啊
2006-03-12 02:50
2006-03-12 20:52
2006-03-12 20:54
2006-03-12 23:55

2006-03-13 09:03


2006-03-13 10:25

2006-03-13 22:03

2006-03-13 22:28