-
syntax help
Code:
char row[3]={0,1,2};
row[0]=(board[0])&&(board[1])&&(board[2]);
Will this code work to assign the first number of the array (row[0]) these three values? Visual Studio doesn't pickup on any errors or anything, but I was wondering if it worked? Thanx.
-
It does not make sense. You are trying to store 3 char values in the first element of an array of single chars.
-
... that wont work though anyway. It looks as though you're using the && operator like the & operator. && is logical (logic denotes true/false evaluation)
-
Is this something like flags?
-
Re: syntax help
Quote:
Originally posted by Neoground1
Code:
char row[3]={0,1,2};
row[0]=(board[0])&&(board[1])&&(board[2]);
Will this code work to assign the first number of the array (row[0]) these three values? Visual Studio doesn't pickup on any errors or anything, but I was wondering if it worked? Thanx.
try to explain a little more clearly exactly what you're trying to do here; but i doubt that line of code accomplishes it.