数据结构-队列
SoWhat1412
微信搜索【SoWhat1412】,第一时间阅读原创干货文章。人之患、在好为人师、不实知、谨慎言。点点滴滴、皆是学问、看到了、学到了、便是收获、便是进步。
展开
-
循环顺序队列
#include using namespace std; #define MAX 4 typedef struct queuearr { int arr[MAX]; int cap; int size; int head; int tail; }QUEUE; QUEUE* create_queue() { QUEUE*原创 2017-03-02 10:39:33 · 783 阅读 · 1 评论 -
链式存储队列
#include #include using namespace std; typedef struct node { int data; struct node *next; }NODE; typedef struct queue { NODE* head; NODE* tail; }QUEUE; QUEUE* create_que原创 2017-03-02 10:18:46 · 535 阅读 · 1 评论