title: where do i include the string library in my C++ header file
body: <p>My simple class won't compile in Visual Studio. It worked before I added the string company member and the getter method getCo() to it. I think I need to put #include the string standard library somewhere but I am not sure where. Any idea where? In my header file, I have:</p>
  
  <pre><code>#pragma once
  #ifndef ENGINEER_H_
  #define ENGINEER_H_
  
  class engineer {
      int years;
      string company;
  public:
      engineer(int years);
      ~engineer(void);
      int getYears();
      string getCo();
  };
  
  #endif ENGINEER_H_
  </code></pre>
  
  <p>And in my CPP file for the definition of the class, I have:</p>
  
  <pre><code>#include "StdAfx.h"
  #include "engineer.h"
  
  engineer::engineer(int y, string c){
      years = y;
      company = c;
  }
  
  engineer::~engineer(void) {
  }
  
  int engineer::getYears() {
      return years;
  }
  
  string engineer::getCo() {
      return company;
  }
  </code></pre>