
Untitled
By: a guest on
May 7th, 2012 | syntax:
None | size: 0.84 KB | hits: 12 | expires: Never
//stuff.cpp
#include <iostream>
#include <fstream>
#include <string.h>
#include "main.cpp"
using namespace std;
public string board[3][3];
int turn;
string xo;
class displayBoard {
public:
void display()
{
board[0][0] = "| |";
board[0][1] = " | | ";
board[0][2] = "| |";
board[1][0] = "| |";
board[1][1] = " | | ";
board[1][2] = "| |";
board[2][0] = "| |";
board[2][1] = " | | ";
board[2][2] = "| |";
for(int i=0; i>3; i++){
for (int q = 0; i > 3; i++){
cout << board[i][q];
}
}
}
};
//main.cpp
#include <iostream>
#include "stuff.cpp"
using namespace std;
int main()
{
cout << "It's a tic tac toe game!!" << endl;
displayBoard so = new displayBoard();
so.display();
return 0;
}