From 07e2409ca3947e31f9d0ee35c82b8f61c3264e1a Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 10 Jan 2019 15:24:38 +0800 Subject: [PATCH] first commit --- 迷宫游戏.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; //λ