摘要:
今天再更最后一篇,那个什么高精度除法明天再说吧(因为我作业没写完),昨天讲了万进制,这里先写一下我的理解,有啥不周全的地方以后补充。 以103456789*12为例, 第一步,存数。这里存储的方式很特殊,不像一般的高精度a[0]=9,a[1]=8,a[2]=7……而是一个元素存四位,也就是a[0]= 阅读全文
posted @ 2021-11-28 20:14
jetaim
阅读(240)
评论(0)
推荐(1)
摘要:
#include<bits/stdc++.h>using namespace std;struct bignum //大整数类型定义{ int len; int num[1000];};void scan(bignum &x,string s) //读入{ x.len=s.size(); memse 阅读全文
posted @ 2021-11-28 19:08
jetaim
阅读(71)
评论(0)
推荐(2)
摘要:
#include<bits/stdc++.h>using namespace std;struct bignum //大整数类型定义{ int len; int num[1000]; bool b1; //判断乘数是否为0};void scan(bignum &x,string s) //读入{ x 阅读全文
posted @ 2021-11-28 16:56
jetaim
阅读(62)
评论(0)
推荐(1)
摘要:
#include<bits/stdc++.h>using namespace std;struct bignum //大整数类型定义{ int len; int num[1000]; bool b1; //处理减法结果的符号};void scan(bignum &x,string s) //输入{ 阅读全文
posted @ 2021-11-28 15:22
jetaim
阅读(43)
评论(0)
推荐(1)

浙公网安备 33010602011771号