Location:
Search - HugeInt
Search list
Description: 巨型整形实现,长度不受windows机器字长限制,实现了基本的加减乘除等运行.-giant plastic realization length from windows machine word limit, realize the basic arithmetic and other operations.
Platform: |
Size: 89293 |
Author: 谢天雷 |
Hits:
Description: 编写一个巨型整数类HugeInt,可以用默认值0或长整型数或字符串进行对象的初始化(构造) 然后用成员、友元或普通函数等重载相应的运算符实现下述功能(必须优化算法、同时进行异常处理):“巨型整数”OP“巨型整数/长整型数/字符串” [其中OP为:加+、减-、乘*、整除/、求余%、复合运算(+=、-=、*=、/=、%=)和关系运算(>、>=、<、<=、!=和==)] “长整型数/字符串”OP “巨型整数”(其中OP为:+、-、*、/、%和关系运算),求负(-巨型整数),巨型整数++、++巨型整数,--巨型整数、巨型整数--,插入(输出)运算符<<。
最后编写一个主函数(测试程序)对以上功能进行全面的测试。-prepared a giant HugeInt type Integer, can use the default value 0 or long integer or string for a few object initialization (Construction) then members Friends yuan or ordinary functions such as heavy corresponding Operators achieve the following functions (must optimization algorithm, Exception handling simultaneously) : "Mega-integer" OP "giant integer / long integer / strings" [which OP :, plus or minus-, x *, divisibility /, I requested% Composite Operators (=,-=,*=,/=,%=) relations and operations (
Platform: |
Size: 9998 |
Author: 小吴 |
Hits:
Description: 巨型整数的C++实现。可以与int,long,string类型进行+,-,*,/,%,+=,-=,*=,/=,%=,比较大小,相互转换等运算
Platform: |
Size: 6529 |
Author: zy |
Hits:
Description: CHugeInt,处理任意位的超大整形数据的基本运算
Platform: |
Size: 1776 |
Author: 梁雨 |
Hits:
Description: 实现了任意长度数字之间的简单运算,包括加,减,乘,除
Platform: |
Size: 17335 |
Author: lxh |
Hits:
Description: 将大数看作一个n进制数组,对于目前的32位系统而言n可以取值为2的32次方,即0x10000000,
假如将一个1024位的大数转化成0x10000000进制,它就变成了32位,而每一位的取值范围就不是0-1
或0-9,而是0-0xffffffff。我们正好可以用一个无符号长整数来表示这一数值。所以1024位的大数
就是一个有32个元素的unsigned long数组。而且0x100000000进制的数组排列与2进制流对于计算机
来说,实际上是一回事,但是我们完全可以针对unsigned long数组进行“竖式计算”,而循环规模
被降低到了32次之内,并且算法很容易理解。-Will be large numbers as a n-band array, on the current 32-bit systems can n value of 2 32-th power, that is 0x10000000, if a 1024 large numbers into hexadecimal 0x10000000, it changed became 32, and each range is not 0-1 or 0-9, but 0-0xffffffff. We just can use a unsigned long integer to express this value. Therefore, large numbers of 1024 is a 32 element array of unsigned long. 0x100000000 hex array and array with 2-band flow for the computer, the fact is one thing, but we can be an array of unsigned long for a vertical calculation , and circle size was reduced to 32 times, the algorithm and it is easy to understand.
Platform: |
Size: 1859584 |
Author: 杨杰 |
Hits:
Description: 巨型整形实现,长度不受windows机器字长限制,实现了基本的加减乘除等运行.-giant plastic realization length from windows machine word limit, realize the basic arithmetic and other operations.
Platform: |
Size: 89088 |
Author: |
Hits:
Description: 编写一个巨型整数类HugeInt,可以用默认值0或长整型数或字符串进行对象的初始化(构造) 然后用成员、友元或普通函数等重载相应的运算符实现下述功能(必须优化算法、同时进行异常处理):“巨型整数”OP“巨型整数/长整型数/字符串” [其中OP为:加+、减-、乘*、整除/、求余%、复合运算(+=、-=、*=、/=、%=)和关系运算(>、>=、<、<=、!=和==)] “长整型数/字符串”OP “巨型整数”(其中OP为:+、-、*、/、%和关系运算),求负(-巨型整数),巨型整数++、++巨型整数,--巨型整数、巨型整数--,插入(输出)运算符<<。
最后编写一个主函数(测试程序)对以上功能进行全面的测试。-prepared a giant HugeInt type Integer, can use the default value 0 or long integer or string for a few object initialization (Construction) then members Friends yuan or ordinary functions such as heavy corresponding Operators achieve the following functions (must optimization algorithm, Exception handling simultaneously) : "Mega-integer" OP "giant integer/long integer/strings" [which OP :, plus or minus-, x*, divisibility /, I requested% Composite Operators (=,-=,*=,/=,%=) relations and operations (
Platform: |
Size: 10240 |
Author: 小吴 |
Hits:
Description: 巨型整数的C++实现。可以与int,long,string类型进行+,-,*,/,%,+=,-=,*=,/=,%=,比较大小,相互转换等运算-Huge integer C to achieve. Can be int, long, string type 2B !,-,*,/,, 2B !=,-=,*=,/=,=, relatively small, the mutual conversion operator
Platform: |
Size: 6144 |
Author: zy |
Hits:
Description: CHugeInt,处理任意位的超大整形数据的基本运算-CHugeInt, dealing with arbitrary data bit oversized plastic basic computing
Platform: |
Size: 1024 |
Author: 梁雨 |
Hits:
Description: 实现了任意长度数字之间的简单运算,包括加,减,乘,除-Realize the arbitrary length between the number of simple calculations, including add, subtract, multiply, divide
Platform: |
Size: 1223680 |
Author: lxh |
Hits:
Description: 利用Linklist实现超大整数之加减乘除-Linklist achieve large integers using the Math
Platform: |
Size: 898048 |
Author: UBIWU |
Hits:
Description: 巨型整数类 -Huge integer type
Platform: |
Size: 14336 |
Author: 徐毅鹏 |
Hits:
Description: 巨型整数类,实现高精度与高精度之间的加减乘除取余运算-Large integer type, to achieve high-precision computing
Platform: |
Size: 1044480 |
Author: 原点 |
Hits:
Description: 巨型整数类 用C++编写 很好的代码哦 本人做滴作业 拿来共享 -Large integer type used to prepare a very good C++ code Oh I used to do the sharing drop operation吼吼
Platform: |
Size: 8192 |
Author: sowiseaboy |
Hits:
Description: HugeInt struct used to store approx. infinite integers and is operator overloaded.
Platform: |
Size: 1024 |
Author: Zohaib Khalid |
Hits:
Description: (1) 程序可以实现巨型整数、长整型数、字符串之间的相加减
(2) 程序可以实现巨型整数、长整型数、字符串之间的大小对比,如大于、小于、等于、不等于、不大于、不小于运算的对比。
-(1) program can achieve huge integer, long integer, a string of phase between the addition and subtraction (2) program can achieve huge integer, long integer, a string comparison between the size, such as greater than, less than is equal to, not equal, not more than, not less than the comparison operation.
Platform: |
Size: 3072 |
Author: 林敏 |
Hits:
Description: 一个练习时写的hugeInt,简单实用
给学习的人做参考,exception没有做太多考虑-Written by a practicing hugeInt, simple and practical。Exceptions are not considered fulluy.
Platform: |
Size: 1306624 |
Author: cxy |
Hits:
Description: 编写的一个20位的大整数的类,包括大整数的加减乘除法-include the class of hugeint
Platform: |
Size: 756736 |
Author: 林沐扬 |
Hits:
Description: C++的一个类HugeInt(头文件形式)实现大整数加,乘,乘方,能计算12345^3456等大数-A Class named HugeInt to compute huge int plus, times and so on
Platform: |
Size: 2048 |
Author: 李鹏程 |
Hits: