- 5
- 0
- 约4.06千字
- 约 6页
- 2017-08-07 发布于安徽
- 举报
#include IOSTREAM
#include LIST
#include algorithm
#include TIME.H
#include CONIO.H
#include WINDOWS.H
using namespace std;
//define the heighth or width of the wall/backgrand
#define M 23
//the speed rate of snake
#define SPEED_RATE 10
//position class (x,y)
class pos
{
public:
pos(int a = 0,int b = 0):x(a),y(b){}
pos(const pos b) {x=b.x,y=b.y;}
public:
bool operator==(pos a) const
{
return x==a.x y==a.y;
}
bool operator!=(pos a) const
{
return x!=a.x || y!=a.y;
}
pos operator=(pos b)
{
x=b.x;
y=b.y;
return *this;
}
public:
int x;
int y;
};
//fuction for movi
您可能关注的文档
最近下载
- 机械制图习题集-第七版-课后答案.ppt VIP
- DB52∕T 1482-2019 二次供水储水设施清洗消毒技术规范.docx VIP
- 视频监控维保项目投标方案(技术标).pptx VIP
- 论残疾人劳动就业权的法律保护【精品论文】.doc VIP
- 湖南省2015年对口招生数学高考试题.doc VIP
- 湖南省2018高考对口招生考试数学真题.doc VIP
- 第9课 二维码伴我生活(说课稿)四年级全一册信息技术人教版 .pdf VIP
- 2025海南省高考地理考试真题及答案.docx VIP
- 湖南省2023年普通高等学校对口招生考试数学.docx VIP
- 2025年海南省高考地理真题试卷及答案.pdf VIP
原创力文档

文档评论(0)