Professional Documents
Culture Documents
Test
Test
//standard library.
using namespace std; //allows the use of cout & endl without "std::" prefix.
//function main.
int main()
{
//declare local variables.
int a = 0;
//Introduction to program.
cout << "Welcome to TicTacToe! If you dont know TicTacToe is a game\n"
<< "for two players, X and O, who take turns marking the spaces\n"
<< "in a 3×3 grid. The player who succeeds in placing three of their\n"
<< "marks in a horizontal, vertical, or diagonal row wins the game.\n"
<< "----------\n"
<< "TicTacToe:" << endl;