Project : Tic-Tac-Toe
// tic tac toe #include <bits/stdc++.h> using namespace std ; class player { string n1 , n2 , w ; char a [ 3 ][ 3 ]; public: int read () { cout << "Enter name of player 1:" << endl ; cin >> n1 ; cout << "Enter name of player 2:" << endl ; cin >> n2 ; cout << n1 << " takes X \n " << n2 << " takes O" << endl ; return 0 ; } int input () { int u = 0 ; for ( int y = 0 ; y < 3 ; y ++) { for ( int w = 0 ; w < 3 ; w ++) { a [ y ][ w ] = '1' + u ; u ++; } } int choice [ 100 ]; int k = 1 ; int cu = 1 ; int c , m ; string n ; char f ; while ( k != 0 && cu != 10 ) { if ( cu % 2 == 0 ) { n = n1 ; f = 'X' ; } else { n =