Vending Machine Program Help!!
Okay I need a little help with this problem
Allow the customer to select a grid location (such as C5). Allow for both upper and lower case input (i.e. C5 and c5 are both valid). Continue to accept input until the user enters two zeroes ("00").
While you may not assume valid user input, you may assume that input will be limited to two characters.
If the input is reversed, such as 5C, output a message as shown in the example and process the input as if it was in the correct order (i.e., C5).
If either the letter or the number of the input is out of range, output an error message as shown in the example.
If the grid location is empty, output an error message as shown in the example.
If the user enters two upper-case O's (OO) instead of two zeroes (00), terminate the program as if the input was two zeroes. Input of two lower-case o's (oo) is invalid.
Now I have most of this done I have the fail condition a two dimensional array the problem that I am running into is I have my two variables set to "char" and in order to process the information through my arrays it has to be in numerical form. I have tried "atoi" but being as they are variables and not constants it won't let me convert them to a number