I am trying to write a program to add big numbers using char data. I need help getting this completed.
char k;
int num1[26], num2[26], sum[26];
ifstream inData;
inData.open("bignums.dat");
inData.get(k);
I need to read in the first number:
7777777777
I need to right justify the first number to the end of the array:
7777777777
I need to read in the second number:
8888888888
I need to right justify the second number to the end of the array:
8888888888
I need to add the first number and the second number using a carry and print out the answer right justified:
16666666665
Can anyone help?
Thanks,
Caramel