C++ no match for operator<< Error
<p>I'm nearing the end of an intro class and I cannot for the life of me figure out what's going on here. First, the code:</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;fstream&gt;

using namespace std;

int main( )
{
    double id = 0.0;
    double rate = 0.0;
    double hours = 0.0;
    double gross = 0.0;

    ifstream wData;
    wData.open("workers.txt", ios::in);

    if (wData.is_open())
    {

    for (int count = 0; count &lt; 8; count = count + 1)
    {

        wData &lt;&lt; id &lt;&lt; rate &lt;&lt; hours;
        gross = rate * hours;
        cout &lt;&lt; "Employee ID: " &lt;&lt; id &lt;&lt; "Gross Pay: " &lt;&lt; gross &lt;&lt; endl;
     }
     wData.close();
     }
     else
     {
         cout &lt;&lt; "The file could not be opened." &lt;&lt; endl;
         }


    system("pause"); 
    return 0;
}
</code></pre>

<p>Next, the error:</p>

<pre><code>41 no match for 'operator&lt;&lt;' in 'wData &lt;&lt; id'
</code></pre>

<p>That would be in the bit <code>wData &lt;&lt; id &lt;&lt; rate &lt;&lt; hours;</code></p>

<p>I've done some poking around (I really like to try to solve these on my own) but I can't pinpoint precisely what's going on. I feel like it might be something really obvious that I'm brainfarting on.</p>
