简单问题...初学...
#include<iostream>using namespace std;
const int ArSize=16;
int main()
{
double factorials[ArSize];
factorials[1]=factorials[0]=1.0;
int i;
for(i=2;i<ArSize;i++)
factorials[i]=1*factorials[i-1];
for(i=0;i<ArSize;i++)
cout<<i<<"!="<<factorials[i]<<endl;
return 0;
}
我想求垒乘怎么结果不对捏?