Complex::operator Complex()
{
Rational a;
this->real=double(a);
return *this;
}
Complex Complex::operator +(const Rational &rhs) const
{
Complex c,d;
d=Complex(rhs);
c.real=this->real+d.real;
c.image=this->image+d.image;
return c;
}
/////////////////
错误报告:cannot convert from 'const class Rational' to 'class Complex'