输出路径
加入栈
struct node
{
int x;
int y;
}s[100];
int top=0;
void dfs()
{
if(find)
{
for(i=1;i<=top;i++)
printf(s[i].x,s[i].y)
return
}
if(x&ybooked)
return
book[x][y]=1
top++
s[top].x=x;
s[top].y=y;
if(x&yOk)
{
if()
dfs()
...
if()
dfs()
}
book[x][y]=0
top--;
return
}
标签:node,输出,struct,int,top,dfs
From: https://www.cnblogs.com/vvvv214/p/16724904.html