// Test driver for Complex number class #include using namespace std; #include "Complex.h" int main() { Complex a(1.1, 3.1); Complex b(1.2, 2.35); Complex c, d, e, f; c = d = a; e = c += b; cout << "b is " << b << endl; cout << "c is " << c << endl; cout << "e is " << e << endl; f = d *= a; cout << "d is " << d << endl; cout << "f is " << f << endl; d = a / b; f = -d; cout << "Now d is " << d << endl; cout << "Now f is " << f << endl; a = c++; cout << "a is " << a << endl; cout << "c is " << c << endl; if (a == c) cout << "a and c are the same" << endl; else cout << "a and c are different" << endl; b = 5; cout << "b is " << b << endl; if (5 == b) cout << "5 and b are the same" << endl; else cout << "5 and b are different" << endl; return 0; }