摘要:
1 #include 2 #include 3 #include 4 5 #define STACK_INIT_SIZE 20 6 #define STACKINCREMENT 10 7 8 typedef char ElemType; 9 typedef struct 10 {11 ElemType *base;12 ElemType *top;13 int stackSize;14 }sqStack;15 16 void InitStack(sqStack *s)17 {18 s->base = (ElemType*)malloc(STACK_I... 阅读全文