Huge

所属分类:Windows编程
开发工具:Visual C++
文件大小:10KB
下载次数:10
上传日期:2007-04-06 14:36:29
上 传 者benjamin
说明:  编写一个巨型整数类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 ()

文件列表:
HugeInt\HugeInt.cpp (55192, 2007-04-06)
HugeInt (0, 2007-04-06)

近期下载者

相关文件


收藏者