Description: Create a complex class Complex, which is used to perform arithmetic operations in complex numbers, and write a program to test that class.
(1) the class has two member variables
(2) define a constructor that initializes the class object
(3) define a add member function to implement the addition of two complex numbers
(4) define a sub member function to implement the subtraction of two complex numbers
(5) define a void print () member function, print the current complex number on the screen
To Search:
File list (Check if you may need any files):
Test.class
Complex.class