I am trying problem 16 from project euler, i want to add a00 integers 50 decimal places each.So i searched and found BigIntegerLibrary, but can't find any good reference material on what are the varoius functions and operators in the library. Please provide me some decent material on how to use the library......
|+0 forum 1|
I am trying to implement my own version of BigInteger which can hold an arbitrary big integer. I have posted my BigInteger.h file here and I need your suggestions if there is any better design for this. 1. std::string private member will hold the BigInteger in the form of string. 2. Addition : [INDENT] a. take each character from right b. convert it to int. d. Add both. hold the sum in one variable and carry over in another. e. convert sum to string and append to the result string. f. carry over variable to be used in the next …
|+0 forum 12|