首页 | 本学科首页   官方微博 | 高级检索  
     检索      

利用数组和字符串实现长整数的精确计算
引用本文:黄师化,汪光运.利用数组和字符串实现长整数的精确计算[J].安庆师范学院学报(自然科学版),2007,13(3):107-109.
作者姓名:黄师化  汪光运
作者单位:安庆师范学院,计算机与信息学院,安徽,安庆,246133;安庆师范学院,计算机与信息学院,安徽,安庆,246133
摘    要:文章阐述了用计算机进行长整数的乘法运算时所遇到的问题以及如何利用数组和字符串来解决这些问题。通过对人工计算过程进行模拟和分析,最终找到一个适合在计算机中实现的算法,即用高级语言来实现长整数的精确计算。

关 键 词:数组  字符串  算法  C++
文章编号:1007-4260(2007)03-0107-03
修稿时间:2007-03-02

Implementation of Precise Calculation of Long Integer by Using Arrays and Strings
HUANG Shi-hua,WANG Guang-yun.Implementation of Precise Calculation of Long Integer by Using Arrays and Strings[J].Journal of Anqing Teachers College(Natural Science Edition),2007,13(3):107-109.
Authors:HUANG Shi-hua  WANG Guang-yun
Institution:School of Computer and Information Science, Anqing Teachers College , Anqing 246133, China
Abstract:The paper proposes the problem that occurs in the case when we carry on the multiplication of long integer by computer and expound how to make good use of array and string to solve the difficulty.In the paper,we elaborate the whole pro- cess of artificial calculation.Through imitating and analyzing it,we find a suitable algorithm to calculate by computer,which can accomplish the calculation of long integer accurately by using advanced language.In the process of artificial calculation,there is no input fault or length restriction of the integer and it is easy to carry flag,while these are difficult for computer to accomplish. So,how to solve these problems is the core work of the paper.
Keywords:C
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号