Hi Whiteflags! Lol, Iím working with Elysiaís code, which I got compiled at last.
The code I posted (#3) was just to show a fellow beginner programmer that there are alternatives you can mess around with. But I wasnít suggesting this as a serious practise. Entering an overly large number would cause some problems too.
Input using string, validating string and then converting using stringstreams seems to be the most solid approach.
Hi Elysia! Looking forward to that tutorial, or at least a hint, because I havenít as yet managed to work out how to use it, though I am learning about namespaces, which is good.
Thank you everyone; everything is useful.