Point.h 622 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include<iostream>
  3. //#include "List.h"
  4. class Point
  5. {
  6. double m_x, m_y;
  7. public:
  8. explicit Point(double x = 0, double y = 0);//constructor
  9. //Point(const Point&);//copy-constructor
  10. //Point(Point&&);//move copy-constructor
  11. //~Point();//destructor
  12. //Point& operator=(const Point&);
  13. //Point& operator=(Point&&);
  14. bool operator==(const Point&) const;
  15. friend std::ostream& operator<<(std::ostream& os, const Point& point);
  16. friend Point& operator>>(std::ifstream& is, Point& circle);
  17. };
  18. std::ostream& operator<<(std::ostream& os, const Point& point);
  19. Point& operator>>(std::ifstream& is, Point& point);