title: No operator ">>" matches these operands?
body: <p>My program is not compiling because of this error and I am unable to solve it. I need some help.</p>
  
  <pre class="lang-cpp prettyprint-override"><code>istream&amp; operator&gt;&gt;(istream&amp; input, const Complex&amp; c)
  {
      cout &lt;&lt; "\nEnter real part ";
      input &gt;&gt; c.real;
      cout &lt;&lt; "\nEnter img part";
      input &gt;&gt; c.img;
      return input;
  }
  </code></pre>