Author Login Editor-in-Chief Peer Review Editor Work Office Work

Computer Engineering ›› 2011, Vol. 37 ›› Issue (16): 75-76. doi: 10.3969/j.issn.1000-3428.2011.16.025

• Networks and Communications • Previous Articles     Next Articles

Memory and Indication of Super Long Integer in C++

YANG Wei-jian, WANG Mei-ying   

  1. (Institute of Computer, Sichuan University of Science & Engineering, Zigong 643000, China)
  • Received:2011-01-31 Online:2011-08-20 Published:2011-08-20

C++中超长整数的存储与表示

杨维剑,王梅英   

  1. (四川理工学院计算机学院,四川 自贡 643000)
  • 作者简介:杨维剑(1968-),男,副教授,主研方向:计算方法,数字计算,数字图像传感技术;王梅英,高级工程师
  • 基金资助:

    国家“863”计划基金资助项目“CNG储气井安全检测技术与检测设备的研发”(2008AA11A134)

Abstract: The paper discusses the use of 32 MASM languages in C++ to directly operate to the memory of method, realizes the saving method of super long integral’s garbage arbitrarily, gives the input and output meaning method of super long integral, and the main procedure calculate way frame diagram and procedure flow chart of these methods, analyzes the time complexity and the space complexity needed, for directly in the C++ in adjusted to provide a convenient condition. It makes use of a super long integral operation to replace floating point arithmetic to lay certain foundation.

Key words: super long integer, input, output, time complexity, space complexity

摘要: 提出在C++中利用32位汇编语言直接对内存操作的方法,实现对任意超长整数在计算机中的存储,给出任意超长整数的输入和输出的表示方法,以及主要程序算法框图和程序流程图。对其时间复杂度及所需空间复杂度进行分析,为直接在C++中调用提供便利条件,为实现在计算机中用超长整数运算代替浮点运算提供技术支持。

关键词: 超长整数, 输入, 输出, 时间复杂度, 空间复杂度

CLC Number: