resolved cin.peek issue: must typecast recently-gotten character from cin.get back to a char: (char) cin.peek