int main() { // Test constructor -NOTE: your Complex class should have only // one constructor. Your constructor should have default arguments // for the real and imaginary parts of the complex object. Complex A; // create a Complex object using default arguments cout << "The default object is: "; A.display(); Complex B(-2.45, 1.0); // create a Complex object supplying values to the ctor cout << "\n\nThe non-default object is: "; B.display(); Complex C(25.777,-35.668); // create another Complex object supplying values to the ctor cout << "\n\nThe second non-default object is: "; C.display(); // Test plusEq() cout << "\n\n- Test plusEq()"; A = Complex(-25.44,-3.543); //Assign new values to Complex objects B = Complex(30.3,-34.876); // NOTE: Equivalent to: C = A += B; C = A.plusEq(B); cout << "\nA = "; A.display(); cout << "\nB = "; B.display(); cout << "\nC = "; C.display(); // Test minusEq() cout << "\n\n- Test minusEq()"; A = Complex(4.65,3.789); //Assign new values to Complex objects B = Complex(6.78,9.222); // NOTE: Equivalent to: C = A -= B; C = A.minusEq(B); cout << "\nA = "; A.display(); cout << "\nB = "; B.display(); cout << "\nC = "; C.display(); cout << '\n' << endl; return 0; } // end main