摘要: ```c++ / 队列的实现方式 顺序存储方式 数组 数组+头位置+尾位置 / include "stdio.h" include "stdlib.h" // define MaxSize 20 define ERROR (1 Data = (ElementType )malloc(sizeof(E 阅读全文
posted @ 2017-08-05 20:06 灰色的石头 阅读(337) 评论(0) 推荐(0) 编辑
摘要: ```c++ / 队列的实现方式 链式存储方式 带有头结点的 单链表实现 链表实现队列的一个特点是 不会满 可以一直入栈 但是肯能队列为空 / include "stdio.h" include "stdlib.h" define ERROR (1 nextNode = NULL; queue la 阅读全文
posted @ 2017-08-05 20:05 灰色的石头 阅读(336) 评论(0) 推荐(0) 编辑