#include<bits/bits/stdc++.h>
using namespace std;
class Complex{
private:
double real,imag;
public:
Complex(double r);
Complex(double r,double i);
Complex(Complex c1,Complex c2);
};
Complex::Complex(double r){
real=r;
imag=0;
}
Complex::Complex(double r,double i){
real=r;
imag=i;
}
Complex::Complex(Complex c1,Complex c2){
real=c1.real+c2.real;
imag=c1.imag+c2.imag;
}
int main(){
Complex c1(3), c2(1,2),c3(c1,c2);
Complex c4=7;//相当于c4={7,0}
return 0;
}
#include <bits/stdc++.h>
using namespace std;
class csample{
public :
csample(){cout<<"Constructor1 Called"<<endl;}
csample(int i){cout<<"Constructor 2 Called"<<endl;}
};
int main(){
csample array1[2];
cout<&