Originally posted by Banfa
Some of that is my fault. I snipped the code because it was answer for an obvious homework assignment that he had posted, and would be indexed in Google. He did create a full and working class with ints going into cin, properly declared, etc, except he had his main as void instead of int (and no return 0). I should have made that clear in the code post, that's my fault. I don't believe I changed anything else in any of the OP's posts.
(And as I have said before, I have the original code, as I ran it because I couldn't see anything wrong with it.)
Comment