I am having difficulty in using array to read large unsigned integer and write them and calculate their sum.Also i am going to implement the following code to check digit and character.
for (;;)
{
ch = cin.get();
if (!isdigit(ch)) break;
cout << ch;
}
and
for (;;)
{
ch = cin.peek();
if (!isdigit(ch)) break;
cin.get();
cout << ch;
}
And ,To skip leading whitespace characters, i am using iswhitespace() function as
while (iswhitespace(cin.peek()))
cin.get();
Any suggestion would be very helpful to me.Although it seems easier to use array but i am unable to handle large unsigned integers to read ,store and add them.