12345678910111213141516171819202122232425 |
- #pragma once
- #include<iostream>
- //#include "List.h"
- class Point
- {
- double m_x, m_y;
- public:
- explicit Point(double x = 0, double y = 0);//constructor
- //Point(const Point&);//copy-constructor
- //Point(Point&&);//move copy-constructor
- //~Point();//destructor
-
- //Point& operator=(const Point&);
- //Point& operator=(Point&&);
- bool operator==(const Point&) const;
- friend std::ostream& operator<<(std::ostream& os, const Point& point);
- friend Point& operator>>(std::ifstream& is, Point& circle);
- };
- std::ostream& operator<<(std::ostream& os, const Point& point);
- Point& operator>>(std::ifstream& is, Point& point);
|