Mail Archives: djgpp/1998/08/27/04:27:25
>oops...
>I meant 25834242042 with 11 digits. I cant figure out how to store it. :(
>
you can store it into an array. Let's say on a[0] its the length of the
number, and then follows the number in reversed order (for a easier
implementation of operations (+,-,* etc).
So, for your number, the declaration would be:
int a[]={11,2,4,0,2,4,2,4,3,8,5,2};
the operations are simulated exactcly as you do them on paper... like in old
school days... (of course there are some optimizations :) )
- Raw text -