Construct a class named Complex to represent a complex number with the requirements:
The real and imaginary components are both floats
Function to input real components, virtual components from the keyboard
Function to display information to the screen
Function to take real components, function to assign real components
Function to get virtual components, function to assign virtual components
The function also takes real and imaginary components
The function simultaneously assigns real and imaginary components
Write a main program that illustrates how to use it
Comments
Leave a comment