Please help! Please copy/paste files that were editted as answer. Code assignment is on templates and inheritance.
https://drive.google.com/drive/folders/1DoCofTfVq6Jw9JHrVc1yIGwwvlx7Nis_?usp=sharing
https://drive.google.com/drive/folders/1DoCofTfVq6Jw9JHrVc1yIGwwvlx7Nis_?usp=sharing
What is suppose to be implemented 1. Overload operator,peratork(define in Point
only one equal() abstract function, override it in each subsequent class, use only this function in definition of operator- and operator!- 2. Since ) function is defined, we can define operator> that is compare point objects by distance to origin from point. 3. Can create vector of pointers on Point objects. Why pointers? Because objects Point, Point2D, Point3D has different length, but pointers each has fixed length 4 bytes. So it is convenient to create vector of pointers on objects type Pointer 4. Note, that Point object has no members so has length 0, Point2D object has 2 T type data members Point3D has 3 T data members, T also can have different length depends of type 5. Create function fivector> &v)..and pass there with vector> and vector objects. (l did and passed there vector of Point3DWeighed objects) 6. Function f can be given vector of points and given point, find point from the vector that is most close to given point -l implement in separate file as standalone function 7. Students need to find 2 points from the vector that are most close to each other 8. I also implement operator+ to add 2 points; it 9. Also, next child can be template WeightedPoint3D, child of Point3D template, added fourth variable weight, type W, so now, we have template WeightedPoint3D 10. Overload functions: read, print (I did) 11. Distance to origin) is the same as in Point3D, multiply()is the same as in Point3D 12. Operator+ adds dimensions and adds weights 13. Does operator -make sense? 14. Operator only one equal() abstract function, override it in each subsequent class, use only this function in definition of operator- and operator!- 2. Since ) function is defined, we can define operator> that is compare point objects by distance to origin from point. 3. Can create vector of pointers on Point objects. Why pointers? Because objects Point, Point2D, Point3D has different length, but pointers each has fixed length 4 bytes. So it is convenient to create vector of pointers on objects type Pointer 4. Note, that Point object has no members so has length 0, Point2D object has 2 T type data members Point3D has 3 T data members, T also can have different length depends of type 5. Create function fivector> &v)..and pass there with vector> and vector objects. (l did and passed there vector of Point3DWeighed objects) 6. Function f can be given vector of points and given point, find point from the vector that is most close to given point -l implement in separate file as standalone function 7. Students need to find 2 points from the vector that are most close to each other 8. I also implement operator+ to add 2 points; it 9. Also, next child can be template WeightedPoint3D, child of Point3D template, added fourth variable weight, type W, so now, we have template WeightedPoint3D 10. Overload functions: read, print (I did) 11. Distance to origin) is the same as in Point3D, multiply()is the same as in Point3D 12. Operator+ adds dimensions and adds weights 13. Does operator -make sense? 14. Operator