For starters you can convert any character to an integer. Assuming you have an ANSI character you can use atoi. Personally I don't like this, it always seems a bit too C like to me, but it works (I'm sure theres an alternative, I know there is for c# etc.)
int char_ansi_id = atoi(entered_char);
Now, if it was upper case: A=65-Z=90. Lower case: a=97-z=122
This outputs 49. Doing the same with 'b' outputs 50, with 'c' outputs 51, and so on. If you want the lower-case alphabet to correspond with numbers starting from 1, you could just use (a - '0') - 48.