娃哈哈v2g
幼苗
共回答了15个问题采纳率:86.7% 举报
class Complex
{
public:
x05Complex(double r,double i):real(r),imag(i){}
x05void print();
x05friend Complex operator +(Complex,Complex);
x05friend Complex operator -(Complex,Complex);
x05friend Complex operator *(Complex,Complex);
private:
x05double real;
x05double imag;
};
void Complex::print()
{
x05cout
1年前
4