In this exercise, you will define a complex data type complx, to manipulate complex numbers: a+bi. In complx class where you can declare complex data, input/output complex data and check if two complex numbers equal each other or not using the same operators used for other built-in data types.
You need to partially implement a few functions (in red) in class complx. This exercise is a supplement and preparation to the Assignment.
The following code implements two functions in the class. You need to implement the rest of the operators (in red …). You may refer to the sample program on class complx in week 6 lectures Objects and Classes and the solutions to question 5 in Quiz 3 on how to implement functions/operators related to class complx. For the creation and compilation of multiple source file project in Dev-C++, please refer to Separate Compilation in Module 7.