I've declared a struct in the header file Player.h and I want to use it in another class but I can't get it working. I've included Player.h in the other class but it says
error C2011: 'Point' : 'struct' type redefinition.
What am I missing?
in Player.h
struct Point {
int x, y;
char name[20];
};
class Player
{
public:
Player(void);
~Player(void);
std::vector<Point> rocketVector;
private:
};