Problems overloading the >> Operator
<p>I have the following block of code trying to overload the >> operator:</p>

<pre><code> istream &amp;operator &gt;&gt; (istream &amp;stream, const Currency &amp;obj){
  cout &lt;&lt; "Dollars: ";
  stream&gt;&gt;obj.dollars;
  cout&lt;&lt; "Cents: ";
  stream&gt;&gt; obj.cents;
  return stream;
 }
</code></pre>

<p>But when I call <code>cin&gt;&gt;newMoney</code> from my main program it keeps repeating "DOLLARS:" over and over again in an endless loop  like below:
<img src="http://i.stack.imgur.com/nQb1U.png" alt="enter image description here">
Any ideas why?</p>
