write a program to add complex numbers using constructor overloading
Answers
Answered by
0
Answer:
cout<<"\n\tEnter the real and imaginary part of number 2:\n\t"; cin>>b>>c; Complex c3(b,c); //Calling parameterised constructor for different values. Complex c4=sum(c2,c3); //Calling copy constructor
Answered by
0
Explanation:
cout<<"\n\tEnter the real and imaginary part of number 2:\n\t"; cin>>b>>c; Complex c3(b,c); //Calling parameterised constructor for different values. Complex c4=sum(c2,c3); //Calling copy constructor.
Similar questions