Question: OK so for something like this I have my string coming in and str[0] must be a letter between A and G 7 letters total

![in and str[0] must be a letter between "A" and "G" 7](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f5029409738_01166f502939f3ea.jpg)
OK so for something like this I have my string coming in and str[0] must be a letter between "A" and "G" 7 letters total and str[1] is a number between 1 and 7. how can I change this code so that it is properly checking that str[0] is only a letter between A and G while str[1] is only a number between 1 and 7.
BOARD_SIZE is a const int = 7
== if (str.size() 2) { if (str[] >= 'A' && str[0] = 0 && str[1]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
