Lecture
Exercise number 1.
Write a program that demonstrates the summation of graphic shapes on the screen. So if A, B and C are graphic figures, then A + B + C means that the corresponding figures will appear on the screen. As figures you can take a rectangle and a circle.
Exercise number 2.
Overload the operation '*' to multiply the complex numbers. Show all the ways to call an overloaded function operation.
Exercise number 3.
Define the class “one-dimensional array” for real numbers. Overload for the class the operation of adding arrays. All input and output data are given in degrees, but calculations are performed in radians.
Comments
To leave a comment
C ++ (C plus plus)
Terms: C ++ (C plus plus)