Hello,
I too would go with a dynamic (pointer) linked list to achieve your desire of the "infinite calculator". The only other way around it would be to declare that your program can process x amount of digits, and if the array fills up, send an error message to the user.
That is what my calculator does, at least.
From the pure curious viewpoint, you might also want to put in how long the computer took computing this information, and how many digits were involved.
Christian
Reputation Points: 121
Solved Threads: 57
Posting Virtuoso
Offline 1,629 posts
since Mar 2004