View Single Post
Old 01-23-2005, 10:34 AM   #2 (permalink)
ender
Code Monkey
 
ender's Avatar
 
Join Date: Mar 2003
Location: Evansville, IN
Posts: 75
ender is on a distinguished road
Send a message via AIM to ender Send a message via Yahoo to ender
PHP Code:
bool checkBoard (char charToCheckcharletters) {
    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
__________________
while(1) fork();
ender is offline   Reply With Quote