摘要:
/*增设表示元素个数的数据*/ #include<stdio.h> #define MaxSize 10 typedef char ElemType; typedef struct { ElemType data[MaxSize]; int front,rear; int size; }SqQueu 阅读全文
摘要:
/*增设tag数据,区分队满队空*/ #include<stdio.h> #define MaxSize 10 typedef char ElemType; typedef struct { ElemType data[MaxSize]; int front,rear,tag; }SqQueue; 阅读全文
摘要:
/*牺牲一个单元来区分队空队满*/#include<stdio.h>#define MaxSize 10typedef char ElemType;typedef struct { ElemType data[MaxSize]; int front,rear;}SqQueue;bool InitQu 阅读全文