> 其他 >
阶乘问题(fact.c)求解释,求讲解,
人气:223 ℃ 时间:2020-05-23 04:37:42
解答
算2000的阶乘都没有问题:
#include
#include
#define max 2000
using namespace std;
long number[max];//高精度数,数组中每项存四位,即用10000进制
int weishu;//保存高精度数的位数除以4
void mul(int m)//高精度乘低精度
{
int i;
for(i=0;i9999)
{
if(i+1> =max)
{
cout < < "The number is too big! " <
推荐
猜你喜欢
© 2026 79432.Com All Rights Reserved.
电脑版|手机版