大数存储——阶乘
void jieCheng(int N){int a[64];int n, i, c, p;int len = 1;a[0] = 1;//计算for (n=N; n>1; n--) {c=0;for (i=0; i<len; i++) {p=a[i]*n+c;//计算a[i]= p%10000;c = p/10000;}//存储并标记长度a[i]=c;if (c>0) {len++;}}//打印printf("%d,",a[len-1]);for (i=len-2; i>=0; i--) {printf("%04d",a[i]);}printf("\n");}
补充:软件开发 , C++ ,