title: having error while compiling with static method
body: <p>Stated on my title, trying to compile my file with a static method inside my code.
  My <code>computeCivIndex()</code> is trying to get 5 inputs from user and do a calculation and return the float value back.</p>
  
  <p><code>this.sunType</code> is for java syntax, but for V++ what should I use to link them together if both are the same name?</p>
  
  <p>I have getter and setter methods in my code and also 2 constructors which is too lengthy to be posted.</p>
  
  <p>This is my error:</p>
  
  <pre><code>test.cpp:159: error: cannot declare member function ‘static float LocationData::computeCivIndex(std::string, int, int, float, float)’ to have static linkage
  test.cpp: In static member function ‘static float LocationData::computeCivIndex(std::string, int, int, float, float)’:
  test.cpp:161: error: ‘this’ is unavailable for static member functions
  </code></pre>
  
  <p>The code:</p>
  
  <pre><code>class LocationData
  {   
      private:
      string sunType;
      int noOfEarthLikePlanets;
      int noOfEarthLikeMoons;
      float aveParticulateDensity;
      float avePlasmaDensity;
      public:
      static float computeCivIndex(string,int,int,float,float);
  };
  static float LocationData::computeCivIndex(string sunType, int noOfEarthLikePlanets,int     noOfEarthLikemoons, float aveParticulateDensity, float avePlasmaDensity)
  {
      this.sunType = sunType;
      this.noOfEarthLikePlanets = noOfEarthLikePlanets;
      this.noOfEarthLikeMoons = noOfEarthLikeMoons;
      this.aveParticulateDensity = aveParticulateDensity;
      this.avePlasmaDensity = avePlasmaDensity;
      if(sunType == "Type O")
           //and more for computation
  }
  </code></pre>