I want to split number entered into digits using vectors (correct me if I'm calling it wrong). It doesn't work and I don't really have any idea why. It compiles well, but after I enter a number, it shows nothing for a while and exterminates.
Anyways, I found a problem - it seems that the problem was while>=0, as it actually reaches zero because of rounding down.
Now as I can see the program sorts numbers in the container from lowest to highest which I don't really need. How do I sort numbers in container so they are shown normally? I need to reverse digits in container.
AFAIK that function sorts values in the container from highest to lowest.
Yes but it won't even compile for me because there is not function prototype. So my compiler dosn't know what sort means. and the function definition should be outside the main function.