You have some options:
- Use a big integer library that supports c++ or make your own
- Use a different programming language - java, python, perl, etc
- solve it mathematically by using properties of log
The way that I am doing it for the one I'm making at the moment is simply to store an array of numbers, and perform operations against the arrays. For example, for addition, you would start from the lowest values, add them together, if they exceed the 'maximum' value for each block you subtract the 'maximum' value and add that number divided by the 'maximum' value to the one in front.
But how many digits can:
• a unsigned long long int have?
• a long double (I don't know how to describe it) have before and after the point?
And what is the maximum number of them?