You can't assign arrays.
Besides, you are even attempting to assign a whole array to a single element in the board array, which also happens to be out of bounds.
With C++0x, you should be able to use the initialization list like this:
Code:
turn::turn():
board
{
{ 'a' , 'b' , 'c' },
{ ' ' , ' ' , ' ' },
{ ' ' , ' ' , ' ' }
}
{
}
With the current language standard, I'm afraid, you'll just have to set each character in the array separately (possible with the help of a loop). E.g:
Code:
turn::turn()
{
char board_init[3][3] = {
{ 'a' , 'b' , 'c' },
{ ' ' , ' ' , ' ' },
{ ' ' , ' ' , ' ' }
};
std::copy(&board_init[0][0], &board_init[3][3], &board[0][0]);
}