I have a program that currently has ALOT of if/else if statements searching a char array for specified elements at known locations. For example, I am looking for chars 'a' and 'b' at location 0, 3 or 4, 6. I thought of using a case statement, but because of the two values, I didn't think this work. Any other hints or is if/else the only way?
Thanks in advance!
Thanks in advance!