C++ · Strings and characters

Characters are numbers

A keypad sends the characters of a PIN, not its numbers, so turning '7' into 7 is a step you write yourself.