So I am still coding this game and every time I make progress
somewhere I take a step back somewhere else.
I know that it is late but I am re-writing from scratch. Anyway, the
basic concept of how I am doing this now is as follows:
I have two main objects: a Square object, which is used to represent a
square on a checker board, and a Board object, which contains some
functions and more importantly, an 8 by 8 array of pointers to
Anyhow, I have two functions, ResetBoard and Print Board, both of
which accept a pointer to an array as an argument. Here are the
(These are both member functions from Board)
void Board::PrintBoard( Square* Board )
void Board::ResetBoard ( Square* Board )
void PrintBoard ( Square* squarePosition );
void ResetBoard ( Square* squarePosition );
From Main, I am trying to call them like this:
When I compile, I get the following error for both lines in main:
main.cpp:23: error: expected primary-expression before ']' token
main.cpp:24: error: expected primary-expression before ']' token
Does anybody know what I am doing wrong? I assume it is the way that I
am trying to pass them. Any help??
A timely response would be very much appreciated.