Here's a program to add two complex numbers of two different classes:#include <iostream>using namespace std;class Complex1 {private: double real; double imag;public: Complex1(double r = 0, double i = 0) { real = r; imag = i; } void display() { cout << real << " + " << imag << "i"...
Showing posts with label Write a program to add two complex numbers of two different classes.. Show all posts
Showing posts with label Write a program to add two complex numbers of two different classes.. Show all posts