the idea is to match a string with another string, and at the same time return true or false in order to keep the rest of the code checking to see if the pair is the same as the temppair, but putting cout in the if statement (if pair == temppair)proves its reading the code anyway, theres something fundemental i dont follow with if and else if though im not sure what it is