When I run it. and I type the two or more number. its only adding the first number.and not carry the integer. for example: I adding 9 and 9 it show 1 but not 18. how can I fix it
The if-clause on step 3 both overwrites ret[0] and makes you hop over ret[1].
Is the LargeInt::length a constant?
I.e. do this and other (and all other LargeInts have same lenght?
What if there is carry from the ret[lenght-1] assignment?
The name "LargeInt" implies that such case is not an overflow error and the class will somehow process and store the "unpreceedingly large" int.