遍历矩阵不重复从矩阵的所有方向扫描全表

遍历矩阵不重复从矩阵的所有方向扫描全表,然后将连续的遍历输出出来,不联系的不输出

http://blog.csdn.net/hahaall/article/details/47425931