复数类及对象的定义如下: 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行调用了复制构造函数

回答
共1条回复-
B
