cin>>row>>colm;
if(row<=0||colm<=0)
{
cout<<"输入错误!请重新输入:"<
>mg[i][j];
return mg;
}*/
void Stack::FindPath(int ab[][10])
{
//找出迷宫的出路
int a,b,di,find,k;
top++;stack[top].x=1;
stack[top].y=1;
stack[top].di=-1;
ab[1][1]=-1;
while(top>-1)
{
a=stack[top].x;
b=stack[top].y;
di=stack[top].di;
if(a==8&&b==8)
{
cout<cout<
cout<<"其长度为:"<";
if(!((k+1)%10))
cout<