Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I have another c++ question that is confusing me if someone could help me with e

ID: 3545341 • Letter: I

Question

                    I have another c++ question that is confusing me if someone could help me with even a start to this code it would help me tremendously.                 

                    
                

                    The type Point is a fairly simple data type, but under another name (the template                 

                    class pair ) this data type is defined and used in the C++ Standard Template Library,                 

                    although you need not know anything about the Standard Template Library to do                 

                    this exercise. Write a definition of a class named Point that might be used to store                 

                    and manipulate the location of a point in the plane. You will need to declare and                 

                    implement the following member functions:                 

                    a. A member function set that sets the private data after an object of this class                 

                    is created.                 

                    b. A member function to move the point by an amount along the vertical and                 

                    horizontal directions specified by the first and second arguments.                 

                    c A member function to rotate the point by 90 degrees clockwise around the origin.                 

                    d. Two const inspector functions to retrieve the current coordinates of the point.                 

Explanation / Answer

Follow the link buddy...
It's a complete tutorial on Tmplet class from scratch with examples....
http://www.cplusplus.com/doc/tutorial/templates/

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote