I have to creat a program where the user inputs two large ints, and they are converted into string in order to add them together (assuming they are larger than 20 characters). One thing, is that it tells me to convert the numbers to a string and store it in reverse order....how do I do this?

I have to creat a program where the user inputs two large ints, and they are converted into string in order to add them together (assuming they are larger than 20 characters). One thing, is that it tells me to convert the numbers to a string and store it in reverse order....how do I do this?

Thats not smart. How about just getting the inputs as a string and
avoid the conversion? Try looking at the code snippet here.

Thats not smart. How about just getting the inputs as a string and
avoid the conversion? Try looking at the code snippet here.

I don't see the code snippet....

There are code snippets on daniweb. I just can't find it atm, gimme a sec to check.

edit: Found it:
http://www.daniweb.com/code/

I don't see the code snippet....

Its on the right side of the webpage, here is the C++ section.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.