I'm writing a program where I need to use REALLY large numbers, so I decided to create a way to use 128 bit integers. I've written a class where I can manipulate the numbers by allocating a block of memory and then treating it as a number, but what I can't do is write code like this:
LargeInteger = LargeInteger + 123789438347598347394839;
I've overloaded the + operator with a 32 bit integer so that it will accept stuff like:
LargeInteger = LargeInteger + 123789;
But I want to be able to type in really large numbers directly into the code and have them added. How would I go about doing this?
LargeInteger = LargeInteger + 123789438347598347394839;
I've overloaded the + operator with a 32 bit integer so that it will accept stuff like:
LargeInteger = LargeInteger + 123789;
But I want to be able to type in really large numbers directly into the code and have them added. How would I go about doing this?