首页 > 其他 > 详细

[小工程]大数类

时间:2018-10-14 18:34:51      阅读:153      评论:0      收藏:0      [点我收藏+]

突然发现自己从来没有写过正儿八经的大数.于是在退役之前写一把.
希望能在用到大数时替代掉慢死的Python.
项目地址Github.com/Frankaiyou/LargeIntegar

Completed

  • [x] Input;
  • [x] Output;
  • [x] Compare size;
  • [x] Integar Addition;
  • [x] Integar substruction;

ToDoList

  • [ ] Fix the memory assignation when addition or substruction;
  • [ ] Fix the Output that appear Prefix zero;
  • [ ] Fix the Compare;
  • [ ] Multiplicaion;
  • [ ] division;
  • [ ] Manage the memory;

实现思路是用一段连续的int32来表示整段数字, 每个int32只用4位, 为的是方便乘法操作.

[小工程]大数类

原文:https://www.cnblogs.com/qdscwyy/p/9787181.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!