摘要: 题意:在矩阵数组中搜索两点是否可达解法:DFS 1 #include 2 #include 3 using namespace std; 4 struct position{ 5 int x; 6 int y; 7 position(int xx,int yy){ 8 x = xx; 9 y = yy;10 }11 position(){}12 };13 14 int maze[101][101];15 int canReach;16 position dest; //destination17 int row,co... 阅读全文
posted @ 2014-01-10 15:40 shaoshuai1990 阅读(290) 评论(0) 推荐(0) 编辑