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

@@ -1,6 +1,7 @@
#include<iostream>
#include<string>
#include<vector>
#include<cstdlib>
#include"eyebot++.h"
#include"maze_parameter.h"
#include"maze_func.h"
@@ -32,10 +33,7 @@ int main()
cout << endl;
output_arrwall(mazesize_x, mazesize_y, copy_wall); //打印墙壁wall信息
cout << "请输入目标点的X,Y坐标值 用空格隔开并回车" << endl;
cout << endl;
cin >> target_x >> target_y;
cout << endl;
cin_targey(); //输入目标点,带超界检测
int map[mazesize_x * mazesize_y] = {}; //创建最短路径求解地图并初始化为0
array_negative_one(mazesize_x * mazesize_y, map); //将map数组初始化为-1