CS233V C++ Programming

Assignment #8

Exercises

8.1, 8.2, 8.3, 8.4, 8.5

Programming

  • 8.15 (Complex  class with operator overloading). It looks like the author gives most of the class declaration and some of the function implementations. All you have to do is add the stream operator overloading, the multiplication overload, and the two comparison operators. Also, you should modify the driver to test the new functionality.
  • Complex multiplication is defined as follows:
  • (a,b)*(c,d) = (a*c-b*d, a*d+c*b)