Hi,
I'm making a programe where the user has to type in a coordinate via cin. This could be A5 (known from chess). I would like a function that split this input into two variables, where the letter is converted to a number, a=1, b=2 ect. The function should also work with both upper- or lowercase letter.
Start Free Trial