• C语言数据结构迷宫问题

    //------------   栈的顺序存储实现   ------------------------------typedef struct...{     int row;     int col;}PosType;typedef struct...{     int                 step;     //当前位置在路径上的"序号"     PosType             seat;     //当前的坐标位置     DirectiveType     di;         //往下一个坐标位置的方向}SElemType;typedef struct...{     SElemType *base;     SElemType *top;     int stacksize;}SqStack;//----------------- 栈的基本操作的算法实现 --------------------------------Status InitStack(SqStack &s)...{     s.base = (SElemType * ) malloc(STACK_INIT_SIZE * sizeof(SElemType));     if(!s.base) exit(OVERFLOW);     s.top=s.base;     s.stacksize=STACK_INIT_SIZE;     return OK;}

    0
    1330
    38KB
    2012-10-17
    31
关注 私信
上传资源赚积分or赚钱