This is another programming assignment I butchered. If anyone can show me how to do this I would really appreciate it.
Write the class definition for a ComplexNumber. Make sure you include appropriate constructors, and a function to return the magnitude of the ComplexNumber.
Then take the SelectionSort routine and BubbleSort routines that you used last semester and rewrite them using a template. Use the SelectionSort and BubbleSort generic routines to sort an array of ComplexNumbers. Overload any operator in ComplexNumber that you need to.