C:栈走迷宫严蔚敏版[新手向]④
C:栈走迷宫严蔚敏版[新手向]④ 近段时间本人在复习数据结构,重新敲一次代码,有什么不足的地方望大佬多多指教,严蔚敏版教程配套算法代码 #include < stdio . h > #include < stdlib . h > #include < malloc . h > #define STACK_INIT_SIZE 100 //初始分配量 #define STACKNCREMRNT 10 //分配增量 #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define INFEASIBLE - 1 #define OVERFLOW - 2 #define width 10 //设置开始位置 #define height 10 //设置末尾位置 typedef int SElemType ; typedef int Status ; typedef int MazeType ; typedef struct { int row ; //行 int col ; //列 } PosType ; typedef struct { int ord ; //通道块在路径上的序号 PosType seat ; //通道块在迷宫中的位置 int di ; //从此通道块走向下一通道块的"方向" } ElemType ;