12345678910111213141516171819202122232425262728
#include <iostream> using namespace std; void check(char board[][3], int ROWS){ } int main() { int Player1 = 1; int Player2 = 2; const int ROWS = 3; const int COLS = 3; char board[ROWS][COLS] = {{'x','o','x'}, {'x','x','x'}, {'o','x','o'}}; cout << "_____________\n"; cout << "| " << board[0][0] << " | " << board[0][1] << " | " << board[0][2] << " |\n"; cout << "|___|___|___|\n"; cout << "| " << board[1][0] << " | " << board[1][1] << " | " << board[1][2] << " |\n"; cout << "|___|___|___|\n"; cout << "| " << board[2][0] << " | " << board[2][1] << " | " << board[2][2] << " |\n"; cout << "|___|___|___|\n"; cout<<check(board, 3)<<endl; return 0; }
cout<<check(board, 3)<<endl;
cout
<<