2012年3月30日
摘要:
exp3-5.cpp//文件名:exp3-5.cpp#include<stdio.h>#define M 4 //行数#define N 4 //列数#define MaxSize 100 //栈最多元素的个数int mg[M+2][N+2]={ {1,1,1,1,1,1},{1,0,0,0,1,1}, {1,0,1,0,0,1},{1,0,0,0,1,1}, {1,1,0,0,0,1},{1,1,1,1,1,1}};struct{ int i,j,di;}stack[MaxSize],path[MaxSize]; ... 阅读全文