I know that this question has been answered before but I have searched all over and not found what I'm looking for. I'm writing a console application. We all know how much the computer hates it when you input a character when you should have inputted some type of number. I would like to know how to avoid this... Example
I'm sure someone else has asked this before but I searched for a long time and didn't find what I was looking for... Thanks for your help!Code:... int I; cin>>I; if (A character was put in){ start over } else { Its all good }



LinkBack URL
About LinkBacks



