All pastes #776528 Raw Edit

Stuff

public text v1 · immutable
·published 2007-11-16 03:20 UTC
rendered paste body
#include <iostream>
using namespace std;

int main(void) 
{
	bool error = false;
int pick;
char p1[3] = "X";
char p2[3] = "O";
	int i = 0;
	cout << "TIC TAC TOE!!!\n";
	while (i++ < 9)
   { 
	   cout << "| " << i << " "; 
   if (i % 3 == 0) cout << "|\n";
   }
	 cout << "Player one you are x's \n Player two you are o's\n \n Player one what box do you want to go in first (1-9)";
	 cin >> pick;
	 do {
		 if (error) 
		 {
			 cout << "Error repick number\n";
		 }
		 cout << "Pick a number higher than 1 and less than 9\n";
		 cin >> pick;
	 } while (error = (pick > 9 || pick < 1));
}
}
 } 
/*	else 
	 { 
		/* if (pick == "p1")
		 {
			 cout << "good job player 1";
			 /*box[pick-1] = p1; */
		/* } 
		 else 
		 {
			 cout << "good job player 2";
			/* box[pick-1] = p2; */
			/* UpdateBoard();  
		 } */
}

 
	return 0;
}