well i came up with this... it takes in the coordinates, row * col, then it changes all black in the object to white...does anyone see an error with this, i get a unknown software exception memory error...
Code:
void erase (char board[ MAX ][ MAX ], int row, int col)
{
if ((1 <= row <= MAX) && (1 <= col <= MAX))
{
if (board[ row ][ col ] == black)
{
board[ row ][ col ] == white;
erase (board, row - 1, col);
erase (board, row + 1, col);
erase (board, row, col - 1);
erase (board, row, col + 1);
}
}
}