Overloading >> Error C++
<p>Whenever I try to compile my program, I get a strange error. I have tried to look it up, and trying different methods of overloading it, but I still get errors.</p>

<pre><code>istream&amp; operator &gt;&gt; ( istream&amp; in, MysteryCard&amp; theMysteryCard ) 
{
  int value;
  in &gt;&gt; value;
theMysteryCard.change(value);
  return in;
}
</code></pre>

<hr>

<p>All of my variables are right, and the functions work, but I do not know why it isn't working.</p>

<blockquote>
  <p>13 no match for <code>'operator&gt;&gt;'</code> in <code>'in &gt;&gt; value'</code></p>
</blockquote>

<p>The change function is public as well.</p>
