#include <iostream>
#include <string>
#include <cmath>
using namespace std;
int main(){
char board[] = {" | | \n | | \n | | \n -----+-------+----- \n | | \n | | \n | | \n -----+-------+-----\n | | \n | | \n | | "};
cout << board;
/* char table[11][11] = {
{ , , ,|, , , ,|, , , ,},
{ , , ,|, , , ,|, , , ,},
{ , , ,|, , , ,|, , , ,},
{-,-,-,+,-,-,-,+,-,-,-,},
{ , , ,|, , , ,|, , , ,},
{ , , ,|, , , ,|, , , ,},
{ , , ,|, , , ,|, , , ,},
{-,-,-,+,-,-,-,+,-,-,-,},
{ , , ,|, , , ,|, , , ,},
{ , , ,|, , , ,|, , , ,},
{ , , ,|, , , ,|, , , ,}
}*/
/*these are what i have come up with so far, just need help deciding which one will be the easiest to use later in coding? any ideas?*/
tictactoehaving a problem deciding how to display
Page 1 of 1
1 Replies - 1033 Views - Last Post: 29 October 2006 - 09:47 AM
#1
tictactoe
Posted 29 October 2006 - 09:35 AM
Replies To: tictactoe
#2
Re: tictactoe
Posted 29 October 2006 - 09:47 AM
Look into width() function of ostream class.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|