tic tac toe game with user playing
#include <iostream> using namespace std; void print_board(char board[3][3]) { cout << "-------" << endl; for (int i = 0; i < 3; i++) { cout << "|" << board[i][0] << "|" << board[i][1] << "|" << board[i][2] << "|" << endl; cout << "-------" << endl; } } void make_move(char board[3][3]) { int row, col; cout << "Enter a row and a column (1 2): " << endl; cin >> row >> col; row -= 1; col -= 1; board[row][col] = 'X'; } int main() { char board[3][3]; for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { board[i][j] = '