ok, so I am back here struggling with beginner's stuff.
this is the question: when I prompt the user for some input, e.g.:
cin >> number;
what can i do for trapping input errors, for example the user inputting a type of data which is different from the variable the program is waiting for? (some chars instead of an integer value or the like)
thanks in advance