title: Why am I getting string does not name a type Error?
body: <h3>game.cpp</h3>
  
  <pre class="lang-cpp prettyprint-override"><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include &lt;sstream&gt;
  #include "game.h"
  #include "board.h"
  #include "piece.h"
  
  using namespace std;
  </code></pre>
  
  <h3>game.h</h3>
  
  <pre class="lang-cpp prettyprint-override"><code>#ifndef GAME_H
  #define GAME_H
  #include &lt;string&gt;
  
  class Game
  {
      private:
          string white;
          string black;
          string title;
      public:
          Game(istream&amp;, ostream&amp;);
          void display(colour, short);
  };
  
  #endif
  </code></pre>
  
  <hr>
  
  <p>The error is:</p>
  
  <blockquote>
    <p><code>game.h:8 error: 'string' does not name a type</code><br>
    <code>game.h:9 error: 'string' does not name a type</code></p>
  </blockquote>