title: operator >> and << not recognized
body: <p>I am very new to c++ and trying to get a hang of it. The following code is an exact copy of a tutorial where the code works for the tutor. But my IDE (Visual Studio) returns error saying:</p>
  
  <pre><code>Error: No operator "&gt;&gt;" matches these operands. 
  Error: No operator "&lt;&lt;" matches these operands. 
  </code></pre>
  
  <p>What am I missing? </p>
  
  <p><strong>My Code</strong></p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int main() {
  
      cout &lt;&lt; "Enter you name" &lt;&lt; flush;
  
      string input;
      cin &gt;&gt; input; //Error as above message
  
      cout &lt;&lt; "your name is " &lt;&lt; input &lt;&lt; endl; //Error message on the &lt;&lt; operator before input
  
      cin.get();
  
      return 0;
  }
  </code></pre>