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

 OK so for something like this I have my string coming

in and str[0] must be a letter between "A" and "G" 7

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!