|
|
@ -6,7 +6,13 @@
|
|
|
|
#define M 3
|
|
|
|
#define M 3
|
|
|
|
#define N 18
|
|
|
|
#define N 18
|
|
|
|
#define Max 10000
|
|
|
|
#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
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int i,j; //块的位置
|
|
|
|
int i,j; //块的位置
|
|
|
|