Well I'm trying to figure out inheritance in c++, and I'm getting a compile time error error: expected type- specifier before 'Pawn'. I get this on the following line
Piece * p = new Pawn(c);
I removed this code because I got worried about people using my code for the assignment I was doing at the time. I apologize if this caused any inconvenience, if you have any specific questions contact me.
I'm aware there may be some other errors but This is the one I'm at a loss with. Thanks in advance for your help!
#include "Pawn.h"in your Pawn.cpp