【广搜模板】
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <queue>
using namespace std;
#define MAXX
#define MAXY
struct Node{
int x,y;
int step;
};
int n,m; //边界
int dx[] = {,,,-};
int dy[] = {,,-,};
int a[MAXX][MAXY];
int isv[MAXX][MAXY];
void judge(int x,int y)
{
if(x< || x>n || y< || y>m)
return true;
if(isv[x][y])
return true;
}
void bfs()
{
memset(isw,,sizeof(isw));
queue <int> q;
int cur,next;
cur.step = 0;
isv[cur.x][cur.y] = true;
q.push(cur);
while(!q.empty()){
cur = q.front();
q.pop();
int i;
for(i=;i<;i++){
}
}
}
Freecode : www.cnblogs.com/yym2013