文件名称:Huge
介绍说明--下载内容均来自于网络,请自行研究使用
编写一个巨型整数类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 (
最后编写一个主函数(测试程序)对以上功能进行全面的测试。-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 (
(系统自动生成,下载前可以参看下载内容)
下载文件列表
HugeInt
.......\HugeInt.cpp
.......\HugeInt.cpp