
游戏
Li_yy123
hi
展开
-
贪吃蛇
/********* 贪吃蛇小游戏。 *********/ #include #include #include #include #include using namespace std; typedef struct //定义一个结构体,用来控制坐标点 { int x, y; } Point; //均定义为全局变量 char map[22][22];原创 2016-06-05 12:44:19 · 946 阅读 · 0 评论 -
C++—迷宫游戏
#include using namespace std; //点为2表示迷宫图为"█",点为0表示迷宫图为" " int migo[9][9]= { {2, 2, 2, 2, 2, 2, 2, 2, 2}, {2, 0, 0, 0, 0, 0, 0, 0, 2}, {2, 0, 2, 2, 0, 2, 2, 0, 2}, {2, 0, 2, 0, 0, 2, 0原创 2016-06-16 18:32:27 · 4076 阅读 · 0 评论