Well after you use getch() to get the A, perhaps you can use cin to get the number. Or, just use getch to get each character into a string and parse the string as you see fit.