Tic Tac Toe

Tic Tac Toe, noughts and crosses, or Xs and Os is a paper-and-pencil game for two players, X and O, who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner
Below is the c++ code written which simulates the classic X O.
Source Code
OR
Compile and Play Online