0

I'm writing a calculator program for complex numbers and I am getting an error during compiling that says

In member function 'Complex Complex::operator*(const Complex&)': 

error: no match for 'operator*' (operand types are 'int' and 'const Imaginary')

iparts = (real * rhs.imagine) + (imagine * rhs.real);

               ^

What does this mean?

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
Seline
  • 1
  • I politely suggest that you include the programming language and development environment that you're using. From the syntax, I'll guess that this is C++. For best results, you should also tag your question with the programming language. – rodamn Sep 14 '15 at 22:14
  • Also, if you do not get an answer soon, please check out this post: http://stackoverflow.com/help/how-to-ask for tips on improving your question. – rodamn Sep 14 '15 at 22:16
  • It means that the operation given in the error message has not been defined. – Ignacio Vazquez-Abrams Sep 15 '15 at 07:11

0 Answers0