摘要: #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, 阅读全文
posted @ 2010-10-30 22:58 云说风轻 阅读(334) 评论(0) 推荐(0) 编辑
摘要: #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 阅读全文
posted @ 2010-10-30 16:28 云说风轻 阅读(279) 评论(0) 推荐(0) 编辑