title: error: 'invalid operands' to binary operator <<
body: <p>I'm getting the following error:<br>
  <em>invalid operands of types 'char' and unresolved overloaded function type>' to binary 'operator&lt;&lt;'</em></p>
  
  <p>What does it mean?</p>
  
  <pre><code>#include &lt;string&gt;
  #include &lt;fstream&gt;
  using namespace std;
  
  int main()
  {
      ifstream inFile;
      inFile.open("records.txt");
  
      ofstream outFile;
      outFile.open("corrected.txt");
  
      while (inFile.good())
      {
          string num, temp;
          inFile &gt;&gt; num;
          outFile &lt;&lt; temp.at(0)=num.at(9) &lt;&lt; temp.at(1)=num.at(8) 
                  &lt;&lt; temp.at(2)=num.at(7) &lt;&lt; temp.at(3)=num.at(6) 
                  &lt;&lt; temp.at(4)=num.at(5) &lt;&lt; temp.at(5)=num.at(4) 
                  &lt;&lt; temp.at(6)=num.at(3) &lt;&lt; temp.at(7)=num.at(2) 
                  &lt;&lt; temp.at(8)=num.at(1) &lt;&lt; temp.at(9)=num.at(0) &lt;&lt; endl; 
      // invalid operands of types 'char' and unresolved overloaded function type&gt;'
      // to binary 'operator&lt;&lt;'
      }
      return 0;
  }
  </code></pre>
  
  <p>This program is supposed to reverse back a list of phone numbers that have been reversed.  </p>