Hi all,
i wrote this in my code:
struct inputBoardType{
boolean before;
boolean now;
int type;
int typeBefore;
int value;
};
inputBoardType board[8][8];
inputBoardType example[8][8];
void setup(){}
void loop(){
example = copy(board);
}
inputBoardType copy(inputBoardType table[][8])
{ inputBoardType destination[8][8];
for(k=0; k<8; k++)
{
for(j=0; j<8; j++)
{
destination[k][j] = table[k][j]
}
}
return table;
}
and the message error was "Error: inputBoardType does not name a type".
Help me please! What could i do to resolve the problem?
Thanx