fork download
  1. #include <cstdlib>
  2. #include <ctime>
  3. #include <iostream>
  4. #include <cmath>
  5. #include <iomanip>
  6.  
  7. using namespace std;
  8.  
  9. char player1, player2;
  10. char user;
  11. bool tie = false;
  12. const int ROW = 3;
  13. const int COL = 3;
  14. int bboard[ROW][COL];
  15.  
  16. char aboard[3][3]= {{'1', '2', '3'},
  17. {'4', '5', '6'},
  18. {'7', '8', '9'}};
  19.  
  20. int main()
  21. {
  22.  
  23. unsigned seed = time(0);
  24. srand(seed);
  25.  
  26. for(int i=0; i<ROW; i++)
  27. for(int j=0; j<COL; j++)
  28. cout<<i*COL<<endl;
  29. //bboard[i][j] = char(rand() % (i*COL+j+1));
  30.  
  31. return 0;
  32.  
  33. }
  34.  
Success #stdin #stdout 0s 4532KB
stdin
Standard input is empty
stdout
0
0
0
3
3
3
6
6
6