HugeInteger大整数计数器作业

上传:weixin_26782 浏览: 61 推荐: 0 文件:RAR 大小:378.13KB 上传时间:2019-04-08 22:30:59 版权申诉
HugeInteger Class) Create a class HugeInteger that uses a 40-element array of digits to store integers as large as 40 digits each. Provide member functions input, output, add and subtract. For comparing HugeInteger objects, provide functions isEqualTo, isNotEqualTo, isGreaterThan, isLessThan, isGreaterThanOrEqualTo and isLessThanOrE qualTo — each of these is a “predicate” function that simply returns true if the relationship holds between the two HugeIntegers and returns false if the relationship does not hold. Also, provide a predicate function isZero.  If you feel ambitious, provide member functions multiply, divide and modulus qualTo — each of these is a “predicate” function that simply returns true if the relationship holds between the two HugeIntegers and returns false if the relationship does not hold. Also, provide a predicate function isZero.  If you feel ambitious, provide member functions multiply, divide and modulus
上传资源
用户评论