控制台贪吃蛇代码.docVIP

  • 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

文档评论(0)

1亿VIP精品文档

相关文档