复数类及对象的定义如下: class Complex { double real image; public: Complex(double r=0 dou

大学网课 已帮助 人

复数类及对象的定义如下: class Complex { double real,image; public: Complex(double r=0, double i=0) {real=r; image=i; } Complex(Complex &c) {real=c.real; image=c.image; } }; Complex c1; //A Complex c2(3,5); //B Complex c3(c2) //C C2=c1; //D 下述说法中正确的是()。

A.C行和D行均调用了复制构造函数

B.C行调用了复制构造函数

C.B行调用了复制构造函数

D.A行调用了复制构造函数

复数类及对象的定义如下: class Complex { double real image; public: Complex(double r=0  dou

热搜:复数域c作为自身的向量空间,维数是?