Introduction - If you have any usage issues, please Google them yourself
The establishment of a complex class imaginary, its private data members x and y represent complex real and imaginary parts, used for complex constructor imaginary real and imaginary parts of initialization, Friends of the member functions add, sub, mul and div respectively. used for complex addition, subtraction, multiplication and division, show a static function used to display calculation results. In the main function, examples of two complex numbers, and enter an operator, press operator to select the appropriate member of the Friends of the complex computing functions, then the output result of the operation.