2013年6月19日

数据结构(C语言版)---第三章栈和队列 3.4.2 队列的链式表示和实现(单链表)

摘要: 只是实现了简单的算法,了解队列的FIFO,源码如下:#include <stdio.h>#include <stdlib.h>typedef int QElemType ;typedef short Status;typedef struct QNode{ QElemType data; struct QNode * next;}QNode,*QueuePtr;typedef struct { QueuePtr front; QueuePtr rear;}LinkQueue;Status InitQueue(LinkQueue *Q){ Q->front = Q- 阅读全文

posted @ 2013-06-19 16:52 净坛使者 阅读(408) 评论(0) 推荐(0) 编辑

导航