C++
Accurately adding large numbers using stacks
You can use stacks to add very large numbers. You may use thestack template to implement stacks.
Read in from a file two very large numbers and storethem in the stacks, add the result.
Display the resulting answer.
Make sure your code is commented.
Sample run
Enter 1st number to be added
398877192309843792837423784
Enter 2nd number to be added
434820384038402384023840234
Answer is: 398877192309843792837423784 +434820384038402384023840234 =833697576348246176861264018
Press any key to continue
Try these pairs of numbers:
6000770088
99112233445
101
22233
Notice the simplicity of the last number, it’s easy to see ifyou are getting the right answer.
If you leave comments in the code so I can ask question if Ineed to that
PayPal Gateway not configured
PayPal Gateway not configured