when i put alpha character it will infinite loop? why the numeric valadition is not working.. thank u |
cin
is bad. If you enter non numeric characters and sickleave
is numeric, sickleave
will not be changed and cin will reside in an error state until cin.clear();