错误:“不匹配'运营商*'

时间:2015-09-14 21:26:19

标签: operator-overloading overloading operator-keyword operand

我正在编写一个复杂数字的计算器程序,我在编译过程中遇到错误

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);

               ^

这是什么意思?

0 个答案:

没有答案
相关问题