title: C++ "Invalid operands to binary expression" in cout
body: <p>New to C++ getting an odd error with cout trying to output text.  Here is the problematic area of my code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  using namespace std;
  
  int main()
  {
      string courseName, courseNum;
  
  cout &lt;&lt; "Enter a four letter course name: ";
  cin &gt;&gt; courseName &gt;&gt; endl;
  
  cout &lt;&lt; "Enter a three digit course number: ";
  cin &gt;&gt; courseNum &gt;&gt; endl:
  
  return 0;
  }
  </code></pre>
  
  <p>The errors come up on the following lines:</p>
  
  <pre><code>cout &lt;&lt; "Enter a four letter course name: ";
  </code></pre>
  
  <p>and</p>
  
  <pre><code>cout &lt;&lt; "Enter a three digit course number: ";
  </code></pre>
  
  <p>What is wrong here?</p>