title: invalid operands of types ‘double’ snd const char [3]’ to binary 'operator<<'
body: <p>This is the error message I get when I try to build:</p>
  
  <blockquote>
    <p>invalid operands of types ‘double’ snd const char [3]’ to binary 'operator&lt;&lt;'</p>
  </blockquote>
  
  <p>Obviously I'm really new to this. Any help would be appreciated. </p>
  
  <p>The code reads:</p>
  
  <pre><code> #include &lt;iostream&gt;
   using namespace std;
  
  
   int main () 
   {
       double x = 3;
       double y = 4;
  
       cout &lt;&lt; "(" &lt;&lt; x = y++ &lt;&lt; ", " &lt;&lt; y &lt;&lt; ")" &lt;&lt; endl;
       cout &lt;&lt; "(" &lt;&lt; x = ++y &lt;&lt; ", " &lt;&lt; y &lt;&lt; ")" &lt;&lt; endl;
       cout &lt;&lt; "(" &lt;&lt; x = y-- &lt;&lt; ", " &lt;&lt; y &lt;&lt; ")" &lt;&lt; endl;
       cout &lt;&lt; "(" &lt;&lt; x = --y &lt;&lt; ", " &lt;&lt; y &lt;&lt; ")" &lt;&lt; endl;
  
           return 0;
   }
  </code></pre>