连连看程序设计代码.docVIP

  • 6
  • 0
  • 约4.21千字
  • 约 6页
  • 2017-02-06 发布于重庆
  • 举报
连连看程序设计代码

#pragma once //表示坐标轴上的一个点[X,Y] struct Point { ? ? Point():X(-1),Y(-1){} ? ? ? Point(int _x,int _y):X(_x),Y(_y){} ? ? ? Point(const Point p):X(p.X),Y(p.Y){} ? ? ? Point operator=(const Point p){ ? ? ? ? X=p.X; ? ? ? ? Y=p.Y; ? ? ? ? return *this; ? ? } ? ??inline bool operator==(const Point p) ??{ ????return X==p.X Y==p.Y; ??} ???inline bool operator==(Point p) ??{ ????return X==p.X Y==p.Y; ??} ???inline bool operator!=(const Point p) ??{ ????return X!=p.X || Y!=p.Y; ??} ???inline bool operator!=(Point p) ??{ ????return X!=p.X || Y!=p.Y; ??} ???int X;//X

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档