Sep 20, 2015 at 8:24pm
Write your question here.
I tried to make the reversed number work.
Would someone please help me?
Thank you.
Last edited on Sep 21, 2015 at 4:04pm
Sep 20, 2015 at 8:32pm
reverse() doesn't do what you think it does. It works on containers, vector for instance.
http://www.cplusplus.com/reference/algorithm/reverse/
You need to create your own function to reverse the digits.
Last edited on Sep 20, 2015 at 8:33pm