struct Gameboard, just for comparison. |
|
struct position: |
|
struct Gameboard: |
|
|
|
pos.gameboard...... I tried it though and either way there is an error, the error is 'pos.position::gameboard.Gameboard::board' cannot be used as a function. without the pos, the error is '((position*)this)->position::gameboard.Gameboard::board' cannot be used as a function
char endspace = gameboard.board(pos.endPosition.i, pos.endPosition.j);char endspace = gameboard.board[pos.endPosition.i][pos.endPosition.j];