Description: Create a class HugeInteger that uses a 40-element array of digits to store integers as
large as 40 digits each (e.g. 8783 is stored as an array of {3,8,7,8,0,0,0,....} ), and use another
boolean member to denote whether it is positive or negative. .
a. Provide member functions input, output, add,substract. Check if these
operations cause overfl ow, i.e. larger than 40 digits, or underfl ow, i.e. less than 0.
b. For comparing HugeInteger objects, provide functions isEqualTo, isNotEqualTo,
isGreaterThan, isLessThan, isGreaterThanOrEqualTo and
isLessThanOrEqualTo-- each of these is a predicate function that simply returns
true if the relation holds between two huge integers and returns false otherwise.
c. Also provide a predicate function isZero.
d. Write a driver program to test class HugeInteger.
To Search:
File list (Check if you may need any files):
HugeInteger\debug\HugeInteger.exe
...........\HugeInteger\Debug\BuildLog.htm
...........\...........\.....\HugeInteger.exe.intermediate.manifest
...........\...........\.....\Implementation.obj
...........\...........\.....\Implemention.obj
...........\...........\.....\mt.dep
...........\...........\.....\Test.obj
...........\...........\.....\vc80.idb
...........\...........\HugeInteger.h
...........\...........\HugeInteger.vcproj
...........\...........\HugeInteger.vcproj.PC-201103072012.Administrator.user
...........\...........\HugeInteger.vcproj.XIAOXIN.Administrator.user
...........\...........\Implementation.cpp
...........\...........\Test.cpp
...........\HugeInteger.ncb
...........\HugeInteger.sln
...........\HugeInteger.suo
...........\...........\Debug
...........\debug
...........\HugeInteger
HugeInteger