diff --git a/迷宫游戏.cpp b/迷宫游戏.cpp index ba6d047..8da3b6e 100644 --- a/迷宫游戏.cpp +++ b/迷宫游戏.cpp @@ -6,7 +6,13 @@ #define M 3 #define N 18 #define Max 10000 - +void draw(int map[20][20]); +int mg[20][20]={0} ; //㷨Ҫõĵͼ +void gotoxy(int x, int y) { + COORD pos = {x,y}; + HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);// ȡ׼豸 + SetConsoleCursorPosition(hOut, pos);//ֱָĸ壬λ +} struct { int i,j; //λ