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?
PDB1982
0
Posting Whiz in Training
Recommended Answers
Jump to Posti didn't understand it to 100%, but you can convert number to string very easy with stringstream(http://www.cplusplus.com/reference/iostream/stringstream/)
Jump to PostI 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 …
All 6 Replies
programmersbook
17
Junior Poster
mrnutty
761
Senior Poster
PDB1982
0
Posting Whiz in Training
DaBunBun
18
Light Poster
programmersbook
17
Junior Poster
mrnutty
761
Senior Poster
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.