摘要: 提出在C++中利用32位汇编语言直接对内存操作的方法,实现对任意超长整数在计算机中的存储,给出任意超长整数的输入和输出的表示方法,以及主要程序算法框图和程序流程图。对其时间复杂度及所需空间复杂度进行分析,为直接在C++中调用提供便利条件,为实现在计算机中用超长整数运算代替浮点运算提供技术支持。
关键词:
超长整数,
输入,
输出,
时间复杂度,
空间复杂度
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++中超长整数的存储与表示[J]. 计算机工程, 2011, 37(16): 75-76.
YANG Wei-Jian, WANG Mei-Yang. Memory and Indication of Super Long Integer in C++[J]. Computer Engineering, 2011, 37(16): 75-76.