期刊文献+

基于C ++的大整数类型的设计与实现 被引量:2

Design and Implementation of Big Integer Types Based on C ++
下载PDF
导出
摘要 针对C++标准库不支持大整数类型的问题,设计并实现一个大整数类型,该类型提供了包括四则运算、运算符重载在内的一整套用于大整数运算的算法,并进一步封装成了类库提供对外调用接口,使得大数类的对象拥有和基本数据类型变量一样的行为.此外,该大数类对象还拥有自动管理内存的功能,从理论上讲,只要内存足够,可以对任意长度的整数进行运算.该大数类简单易用,在编程算法、极限运算等方面有一定的应用意义. C ++ Standard Library is unavailable for big integer,and therefore, this paper designs and also achieves a big integer data type, which provides a suit of algorithms including arithmetic calculations and operation overload. Furthermore, the algorithms are encapsulated as a library which provides calling inter- faces for exterior,and makes the objects of the big integer function in the same way as the basic data type variables. In addition, obejcts based on big integer can also manage memory automatically. Theoretically, they can deal with any size of integer as long as the memory is large enough. The practice shows that this big integer library is simple and convenient, and has significant application meaning in programming, ex- treme computing, etc.
出处 《成都大学学报(自然科学版)》 2016年第3期252-255,270,共5页 Journal of Chengdu University(Natural Science Edition)
关键词 C++ 大整数 类库 自动内存管理 C ++ big integer library automatic memory management
  • 相关文献

参考文献5

  • 1叶安胜,鄢涛.C语言综合项目实战[M].北京:科学出版社,2016.
  • 2StephenP.C ++ Primer Plus[M].张海龙,袁国忠,译.北京:人民邮电出版社,2015.
  • 3MarcG, Nicholas A S, Scott J K. C++ 高级编程[M].侯普秀,郑思遥,译.北京:清华大学出版社,2014.
  • 4Michael Wong, IBM XL编译器中国开发团队.深入理解C++11[M].北京:机械工业出版社,2016.
  • 5StephenP.C Primer plus[M].云扇工作室,译.北京:人民邮电出版社,2011.

同被引文献14

引证文献2

二级引证文献3

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部