摘要:
#include <stdio.h> #include "queue.h" int main(void) { SqQueue qu; ElemType e; InitQueue(&qu); printf("栈%s/n", (QueueEmpty(qu) == 0 ? "空" : "不空")); printf("a进栈/n"); EnQueue(&qu, 'a'); printf("b进栈/n"); EnQueue(&qu, 阅读全文
摘要:
#include <stdio.h> #include "stack.h" int main(void) { SqStack st; ElemType e; InitStack(&st); printf("栈%s/n", (StackEmpty(st) == 0 ? "空" : "不空")); printf("a进栈/n"); Push(&st, 'a'); printf("b进栈/n"); Push(&st, 'b 阅读全文