title: How to use a struct declared in another Class
body: <p>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 </p>
  
  <blockquote>
    <p>error C2011: 'Point' : 'struct' type redefinition.</p>
  </blockquote>
  
  <p>What am I missing?</p>
  
  <p>in Player.h</p>
  
  <pre><code>struct Point {  
      int x, y;
      char name[20]; 
  };
  
  
  class Player
  {
      public:
      Player(void);
      ~Player(void);
  
      std::vector&lt;Point&gt; rocketVector;
      private:
  };
  </code></pre>