// Include the iostream library
#include <iostream>
#include <string>
// Using the standard namespace
using namespace std;
// Declare Global Variables
char Board[9];
// Declare functions
void showBoard ();
void main()
{
// Declare the local variables
string Player_1_Name;
string Player_2_Name;
int whose_turn = 1; // 1 means player 1s turn and 2 means player 2 turns.
int Move; // Stores where the players wants to move
// Get PLayer names
cout << "Player 1: Please enter your name" << endl;
cin >> Player_1_Name;
cout << "Player 2: Please enter your name" << endl;
cin >> Player_2_Name;
// Show the board
showBoard ();
// Tell which player to move
if (whose_turn ==1)
{
cout << Player_1_Name << " :It's yourturn. " << endl;
void main()
Begin replacing it with... int main()
...Thanks. Also try using code tags, that will help us a lot, take a look here: http://www.cplusplus.com/articles/z13hAqkS/