经典的走迷宫 典型的暴力搜索问题,每走一步都面临着4个方向的选择。 最基本的思路 就是一个方向一条道走到黑,撞到墙了才知道拐弯。 尝试第一个方向 #include <iostream> #include <windows.h> using namespace std; //8行8列的矩阵迷宫