Hi, this has been annoying me for a few hours, I can't figure out this problem. First, here is the code that the error is concerned with one file that I will copy and paste here:
file 1: piece.h
Code:
#ifndef PIECE_H
#define PIECE_H
#include "board.h"
class Piece
{
public:
Piece();
Piece(int pieceType, int pieceColor, HDC theHdc, Board theB);
Piece(Piece& origVal);
Piece& operator=( Piece & origVal);
Board theBoard;
int ycoord[4], xcoord[4];
int pieceColor, pieceType;
int currentOrient;
HDC hdc;
};
#endif
The error is on the two bolded lines:
on the first bolded line, I get the following two errors:
type specifier omitted for parameter
and
parse error before `)'
And the error on the second bolded line is:
syntax error before `;'
I'm assuming both of these errors have to do with defining a Board object. I have even included the board.h on the top of this file as you can see.
board.h is not getting any errors. Can someone tell me what could be going on? I'm confused. Thank you in advance for the help!
Nimit