文件名称: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
www.dssz.com.txt
HugeInt
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.