private:
        char board[3][3];   // two dimensional array stores current board configuration
};

tictactoeGame::tictactoeGame
{
// set boardConfig[i][j] to be ' ' (the space character) for each i,j from 0 to 2
}

Use nested for loops.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.