my code is supposed to find 1 match and break but it keeps going and finds them all. it searches my 3 words in my string array and makes sure that they are not already replaced.
Code:for (int i=0; i < m; i++){ for (int x = 0; x <= 2; x++){ if (curWord[0][x][i] != letterguess){ if (xword[0][x][i] == letterguess){ curWord[0][x][i] = letterguess; cout << xword[0][x] << endl; xcount = 0; break; } } } }