Text 7
Text 7
#include <iostream>
using namespace std;
int main()
{
// Initialize the board and players
char board[3][3] = { { ' ', ' ', ' ' },
{ ' ', ' ', ' ' },
{ ' ', ' ', ' ' } };
char player = 'X';
int row, col;
int turn; // Declare turn here
// Game loop
for (turn = 0; turn < 9; turn++) {
// Draw the board
drawBoard(board);
return 0;
}