📄 point.h
字号:
#ifndef _POINT_H
#define _POINT_H
#include <string>
using namespace std;
struct Point
{
Point();
Point(double px, double py);
string tostring() const;
double distanceFrom(const Point& p) const;
double x;
double y;
};
bool operator == (const Point& lhs, const Point& rhs);
bool operator != (const Point& lhs, const Point& rhs);
bool operator < (const Point& lhs, const Point& rhs);
bool operator > (const Point& lhs, const Point& rhs);
bool operator <= (const Point& lhs, const Point& rhs);
bool operator >= (const Point& lhs, const Point& rhs);
ostream& operator << (ostream& os, const Point& p);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -