lvalue required as left operand of assignment error via if statement
<p>I've looked at similar questions, but being a total newbie at this, they haven't helped much, when I try to run my final if statement I run into this error, how can I make my cout statement clearer? Its intended purpose is to output how many bags of garbage it can accept, how many the user is trying to give it, and how many bags will be left over if it cannot take them all.</p>

<pre><code>while(( reg &lt; 50) &amp;&amp; (met&lt; 20) &amp;&amp; (glass &lt; 20))
{
reg=reg+reg; met=met+met; glass=glass+glass;
cout&lt;&lt; " I have enough "&lt;&lt; endl;


if(reg+=reg &gt; 50){
cout&lt;&lt; "I can only accept " &lt;&lt; 50 - (reg+=reg) &lt;&lt; "of your " &lt;&lt; (reg+=reg)&lt;&lt;" regular     bags of garbage, I'll leave the other " &lt;&lt; 50 - (reg+= reg)&lt;&lt; " I'll leave the other " &lt;&lt; reg- (50 - reg+=reg)&lt;&lt; endl;
}
</code></pre>
