You get a bonus - 1 coin for daily activity. Now you have 1 coin

3.9. Exercises

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.

created: 2015-12-20
updated: 2021-03-13
122



Rating 9 of 10. count vote: 2
Are you satisfied?:



Comments


To leave a comment
If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

C ++ (C plus plus)

Terms: C ++ (C plus plus)