数据结构之静态队列(循环队列)
摘要:# include # include typedef struct Queue { int * pBase; int front; int rear; }QUEUE; void init(QUEUE *); bool en_queue(QUEUE *, int val); //入队 void traverse_queue(QUEUE *); bool fu...
阅读全文
数据结构之堆栈
摘要:1 # include 2 # include 3 # include 4 5 typedef struct Node 6 { 7 int data; 8 struct Node * pNext; 9 }NODE, * PNODE; 10 11 typedef struct Stack 12 { 13 PNODE pT...
阅读全文
数据结构之非循环单链表
摘要:1 # include 2 # include 3 # include 4 5 typedef struct Node 6 { 7 int data; //数据域 8 struct Node * pNext; //指针域 9 }NODE, *PNODE; //NODE等价于struct Node PNODE等价于struct No...
阅读全文