I have a 2D array of a Tic Tac Toe gameboard, and I'm trying to figure out how to pass the gameboard (aBoard) to a function(void CreateBoard( xxx ))... and I have no idea how to do it.
What would be the best way of doing this? A pointer? Pass the entire array? Can you give me some code (C++) on how to do both? Which ones more effecient?
And if you use a pointer, once I start editing the pointer, how can I make it so it was just like the oroginal game board, so I can manipulate the elements...
Any help would be appreciated.