Code not working

im trying to make a tic tac toe game where u can customize it, for example:

width = 5
length = 4

x o x o x
x o x o x
x o x o x
x o x o x
width = 3
length = 3
x o x
x o x
x o x
width=4
length = 4
x o x o
x o x o
x o x o
x o x o



i got it to work but im having problem showing the board









CODE:

http://textuploader.com/5hai1
learn to indent
limit the scope of your variables
1
2
for int K=0; K<64; ++K)
   square[K] = "b ";

`looop' and `loop' are hard to differentiate
functions may receive arguments, not everything needs to be global
be descriptive with your errors, ``having problem'' it's a useless message
'1' and 1 have different values


1
2
string square[64]
cout << "Enter width, max==8 \n";
¿why only 8? you have space for 64
Never mind fixed it, thank u.



max==8
because the maximum length is 8 and width is 8
and 8*8=64
if width=8
and length=8
then 64 variables are being used
oh, I thought that you would use each string to represent a row.
Topic archived. No new replies allowed.