2D Array Tic Tac Toe

#include <iostream>
#include <iomanip>
#include <cstdlib>
using namespace std;

int main()
{
const int row = 3, column = 3;
char Table[row][column] = {{'1', '2', '3'},
{'4', '5', '6'},
{'7', '8', '9'}};

cout << "--------Welcome To Tic Tac Toe !-------\n";
for(int keeptrack = 0; keeptrack < 9; ++keeptrack)
{
for(int count1 = 0; count1 < 3; ++count1 )
{
int count2 = 0;
cout << Table[count1][count2] << setw(2);
++count2;
cout << Table[count1][count2] << setw(2);
++count2;
cout << Table[count1][count2] << left << setw(2);
cout << endl;
}

int count = 0;
while(count < 8)
{
int player1[5];
int player2[4];

cout << "Player1 it's your turn, type the number of your desired location: \n";
cin >> player1[count];
cout << "Player2 it's your turn, type the number of your desired location: \n";
cin >> player2[count];
++count;
}
system("PAUSE");
return 0;
}
}

WHY DOES THE FOR LOOP, THAT DISPLAYS THE TIC TAC TOE TABLE, NOT EXECUTE AGAIN?
PLEASE HELP ME !
Proper identation will shw you problem right away
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
int main()
{
    const int row = 3, column = 3;
    char Table[row][column] = {{'1', '2', '3'},
        {'4', '5', '6'},
        {'7', '8', '9'}
    };

    cout << "--------Welcome To Tic Tac Toe !-------\n";
    for(int keeptrack = 0; keeptrack < 9; ++keeptrack)
    {
  /*|*/ for(int count1 = 0; count1 < 3; ++count1 )
  /*|*/ {
  /*|*/     int count2 = 0;
  /*|*/     cout << Table[count1][count2] << setw(2);
  /*|*/     ++count2;
  /*|*/     cout << Table[count1][count2] << setw(2);
  /*|*/     ++count2;
  /*|*/     cout << Table[count1][count2] << left << setw(2);
  /*|*/     cout << endl;
  /*|*/ }
  /*|*/
  /*|*/ int count = 0;
  /*|*/ while(count < 8)
  /*|*/ {
  /*|*/     int player1[5];
  /*|*/     int player2[4];
  /*|*/
  /*|*/     cout << "Player1 it's your turn, type the number of your desired location: \n";
  /*|*/     cin >> player1[count];
  /*|*/     cout << "Player2 it's your turn, type the number of your desired location: \n";
  /*|*/     cin >> player2[count];
  /*|*/     ++count;
  /*|*/ }
  /*|*/ system("PAUSE");
  /*|*/ return 0; //At the end of first iteration return interrupts program
    }
}

God Bless Your Soul. I looked so retarded looking at your reply. Thank You very much. Now I can complete this homework.
Topic archived. No new replies allowed.