اذا امكن مساعدة في الحل
You are to implement a bigint class. The following operators are to be overloaded:
bigint * bigint
bigint > int
bigint > bigint
bigint = int
bigint = bigint
ostream << bigint
istream >> bigint
bigint--
In addition you may find the following public member functions useful:
getSize //which gives the number of digits in the bigint.
getInts //which returns a copy of the array holding your integer representation.
You should then use your class to write a program that computes factorial (hope you saw this coming). You should prompt the user for a number. Read the number in to a bigint value. Compute and display factorial as follows:
bigint x;
cin >> x;
bigint fact = 0;
for(bigint i = x; i > 0; i--){
fact = fact * i;
}
cout << x "! = " << fact;
Your program should only compute one factorial and exit.
. A bigint object should allow an arbitrary length string to be converted to an bigint value. Your bigint's should not overflow
اتمنى ان احصل على الحل وشكرا