By using this program you can input an integer having up to 40 digits. All the operators are overloaded hence Class can be used as normal integer. // ============================== // Main.cpp // ============================== #include <iostream> #include "hugeint.h" using namespace std; int main() { hugeinteger ary,ary1,ary2,ary3; char* str = new char[40]; cout<<"enter string : "; cin>>str; ary.getinput(str); cout<<"enter string : "; cin>>str; ary1.getinput(str); /* cout<<"enter string : "; cin>>str; ary2.getinput(str); cout<<"enter string : "; cin>>str; ary3.getinput(str); cout<...
Comments
Post a Comment