順序循環隊列 初始化、出隊、入隊、取隊頭元素、判空

#include<stdio.h> //順序循環隊列 對尾插入,對頭刪除,先進先出 #define MaxSize 20 typedef struct { int queue[MaxSize]; int rear; //對尾指針 int front; //對頭指針 int count; //計數器 }SeqCQueue; void QueueInitiate(Se
相關文章
相關標籤/搜索