Two quick questions..
1) Is it possible to put a blank space in a int array? I have zero's in there presently but was wondering if I could put blank spaces in it like you can in a char array.
2) Which is better?
Code:
// horizontal
if ( (x1 == 1) && (x2 == 1) && (x3 == 1) )
return 1;
else if ( (x1 == 2) && (x2 == 2) && (x3 == 2) )
return 2;
if ( (x4 == 1) && (x5 == 1) && (x6 == 1) )
return 1;
else if ( (x4 == 2) && (x5 == 2) && (x6 == 2) )
return 2;
...
or
Code:
// horizontal
if ( (x1 == 1) && (x2 == 1) && (x3 == 1) )
return 1;
else if ( (x1 == 2) && (x2 == 2) && (x3 == 2) )
return 2;
else if ( (x4 == 1) && (x5 == 1) && (x6 == 1) )
return 1;
else if ( (x4 == 2) && (x5 == 2) && (x6 == 2) )
return 2;
...
There are quite a few more if statements. Thanks for your time