Question: C++ programs for a), b) and c) Common to all variants. To implement the copy constructor and assignment operator overload. a) Create the class definition
C++ programs for a), b) and c)
Common to all variants. To implement the copy constructor and assignment operator overload.
a) Create the class definition for the object-vectors defined by the coordinates of the ends in the two-dimensional space. To ensure the operation of addition and subtraction of vectors to produce a new vector (sum and difference), calculate vector lengths, multiply a vector by a scalar. The operations of addition, subtraction, and multiplication by a scalar value realized in the form of operator overloading. The program must contain a menu that allows you to verify all methods.
b) Describe class "set" of real numbers, allows you to perform basic operations - addition and removal of elements, the union and intersection of sets. All operations are implemented in the form of operator overloading. The program must contain a menu that allows you to verify all methods.
c) Describe the class "row" based on char *, which allows to perform basic operations - comparison character adding to the end of the line, getting on the index character. All operations are implemented in the form of operator overloading. The program must contain a menu that allows you to verify all methods.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
