2025.5.31第一次提交优化代码结构,头文件等

This commit is contained in:
氧原子
2025-05-31 23:28:45 +08:00
parent 9ba913646c
commit 0b8d29917f
9 changed files with 39 additions and 10 deletions

View File

@@ -2,6 +2,7 @@
#include<string>
#include<vector>
#include<cstddef>
#include<cstdlib>
#include"eyebot++.h"
#include"maze_parameter.h"
#include"maze_func.h"
@@ -117,6 +118,7 @@ void maze_entry(int x, int y, int dir, int open)
else
{
cout << "error: mark or wall empty" << endl;
exit(1);
}
}
wall[x][y+1][0] = !open;
@@ -141,6 +143,7 @@ void maze_entry(int x, int y, int dir, int open)
else
{
cout << "error: mark or wall empty" << endl;
exit(1);
}
}
wall[x][y][1] = !open;
@@ -165,6 +168,7 @@ void maze_entry(int x, int y, int dir, int open)
else
{
cout << "error: mark or wall empty" << endl;
exit(1);
}
}
wall[x][y][0] = !open;
@@ -181,6 +185,7 @@ void maze_entry(int x, int y, int dir, int open)
else
{
cout << "error: mark or wall empty" << endl;
exit(1);
}
}
wall[x+1][y][1] = !open;