nokomis,they are char variables not integer variables so it works fine.
if I were you I didnt use getline(),when you want to handle only one character why using getline()!
the bestway is reading invalid characters until getting a valid character then using switch you can determine what action should be done according your valid inputs.
--------------------------------------------
Mehdi.:)
|