title: No operator << matches these operands
body: <p>I've been reading questions here for an hour or two regarding this error I'm getting and most of them forgot to #include string (which I had already done), or to overload the &lt;&lt; operator. </p>
  
  <p>Here's the code in question:</p>
  
  <pre><code>void Student::getCoursesEnrolled(const vector&lt;Course&gt;&amp; c)
  {
      for (int i = 0; i &lt; c.size(); i++)
      {
          cout &lt;&lt; c[i] &lt;&lt; endl;
      }
  
  }
  </code></pre>
  
  <p>And the error I'm getting:</p>
  
  <pre><code>Error: No operator matches these operands
      operand types are: std::ostream &lt;&lt; const Course
  </code></pre>
  
  <p>All I'm trying to do is return the vector. I read about overloading the &lt;&lt; operator but we haven't learned any of that in class so I'm assuming there is another way of doing it?</p>
  
  <p>I appreciate your time!</p>