#include <iostream>
#include <iomanip>
#include <fstream>
using namespace std;
char maze [8][8]={{1,0,1,1,1,1,1,1},
{0,0,1,0,1,0,0,1},
{1,0,1,0,1,0,1,1},
{1,0,1,0,0,0,0,1},
{1,0,0,0,1,1,0,1},
{1,0,1,0,0,1,0,1},
{1,0,1,0,1,1,0,1},
{1,1,1,1,1,1,0,1}};
int mani()
{
ifstream fp;
int i,j,x,y;
fp.open("maze.txt");
for (i=0;i<8;i++)
{
for (j=0;j<8;j++);
}
fp.colse();
for (i=0;i<8;i++)
{
for (j=0;j<8;j++);
}
cout << "显示迷宫:" << maze[i][j] << endl;
return 0;
do
{
cout << "请输入x座标(0-9)" << endl;
cin >> x;
cout << "请俞入y座标(0-9)" << endl;
cin >> y;
}while(maze[x][y]==Ƈ' || maze[x][y]=='e');
if (maze[x][y-1]==Ɔ' && (y-1)>=0)
{
maxpath;
}
if (maze[x][y+1]==Ɔ' && (y+1)<10)
{
maxpath;
}
if (maze[x+1][y]==Ɔ' && (x+1)<10)
{
maxpath;
}
if (maze[x-1][y]==Ɔ' && (x-1)>=0)
{
maxpath;
}
}