Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.84 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. //stuff.cpp
  2. #include <iostream>
  3. #include <fstream>
  4. #include <string.h>
  5. #include "main.cpp"
  6. using namespace std;
  7.  
  8. public string board[3][3];
  9. int turn;
  10. string xo;
  11.  
  12. class displayBoard {
  13.  public:
  14.     void display()
  15.     {
  16.     board[0][0] = "| |";
  17.     board[0][1] = " | | ";
  18.     board[0][2] = "| |";
  19.     board[1][0] = "| |";
  20.     board[1][1] = " | | ";
  21.     board[1][2] = "| |";
  22.     board[2][0] = "| |";
  23.     board[2][1] = " | | ";
  24.     board[2][2] = "| |";
  25.         for(int i=0; i>3; i++){
  26.             for (int q = 0; i > 3; i++){
  27.                 cout << board[i][q];
  28.             }
  29.         }
  30.     }
  31. };
  32.  
  33. //main.cpp
  34. #include <iostream>
  35. #include "stuff.cpp"
  36.  
  37. using namespace std;
  38.  
  39. int main()
  40. {
  41.     cout << "It's a tic tac toe game!!" << endl;
  42.     displayBoard so = new displayBoard();
  43.     so.display();
  44.     return 0;
  45. }