title: error explicit type is missing('int assumed')
body: <p>I am getting this error, in my project and i can't seem to figure it out, the error is </p>
  
  <blockquote>
    <p>error explicit type is missing('int assumed)</p>
  </blockquote>
  
  <p>This is what i have;</p>
  
  <p>Ship.cpp</p>
  
  <pre><code>Ship::Ship(){
          rot = 0;
          position.x = SCREEN_WIDTH / 2;
          position.y = SCREEN_HEIGHT / 2;
  
          velocity.x = .2;
          velocity.y = .2;
  
          radius = 0;
  }
  
  float Ship::&amp;rotateLeft(){
      if (rot &lt; 0)
          rot += 360;
      rot-= velocity.x;
      return rot;
  }
  
  float Ship::&amp;rotateRight(){
      if (rot &gt; 360)
          rot -= 360;
      rot+= velocity.x;
      return rot;
  }
  
  float Ship::&amp;getRot(){
      return rot;
  }
  </code></pre>
  
  <p>Ship.h</p>
  
  <pre><code>#include "Physics.h"
  
  class Ship : public Physics{
  private:
      float rot;
  public:
      float radius;
      XMFLOAT2 size;
  
      Ship();
  
      float &amp;rotateRight();
  
      float &amp;rotateLeft();
  
      float &amp;getRot();
  };
  </code></pre>
  
  <p>Physics.h</p>
  
  <pre><code>class Physics{
  public:
      XMFLOAT2 position;
      XMFLOAT2 velocity;
  };
  </code></pre>
  
  <p>This is weird because it is telling me that rot and velocity are undefined in my rotateleft function but it doesn't complain in the constructor. The same function is also giving me the error explicit type is missing('int assumed'). </p>