PHP Code:
bool checkBoard (char charToCheck, char* letters) {
if (letters[7] == charToCheck /* && blah blah blah */) {
cout << charToCheck << " is the winner!\n";
return true;
}
return false;
}
/* In your main function */
while (...) {
if (checkBoard ('o', letters)) break;
}
Hope this helps!
-Ted