point.h

来自「第一次上传」· C头文件 代码 · 共 24 行

H
24
字号
#ifndef POINT_H
#define POINT_H

class Point{
public:
    Point( int,int );
    Point( Point & );
    ~Point();
    int get_x();
    int get_x();
    Point operator + (Point);
    Point operator + ( int );
    Point operator * ( int );
    int operator > (Point);
    int operator < (Point);
    int operator = (Point & );
  private:
    int x;
    int y;
    friend istream& operator >> ( istream &,Point &);
    friend ostream& operator << ( istream &,Point &);
};
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?