linked list with a 2d array

I am making a board game with a 2D array of char's to represent pieces of the board. I am trying to implement a linked list so I can undo moves. This is what I have.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
struct Node
{
  char board[10][10];
  Node *nextPtr;
};
int main()
{
  Node *pHead = NULL;
  char board[10][10];
  // I want to store this board as the head of my linked list
  // so I do something like this...

  pHead->data = board;
  // Which is not correct
  
}


So how do i go about storing a 2d array like this. The error i receive is
error C2106: '=' : left operand must be l-value
error C2440: '=' : cannot convert from 'char [][10]' to 'char [10][10]'
Topic archived. No new replies allowed.