For example, how can I use the result of 1000^1000 for arithmetic? I don\'t think there\'s a library that can accommodate that, all I see at most is 100 number digits.
Use an arbitrary-precision arithmetic library like GMP or Boost.Multiprecision.