- 博客(1)
- 收藏
- 关注
原创 队列的顺序实现
目录一,队列的顺序实现#define MaxSize 10typedef struct { ElemType data[MaxSize]; int front, rear;}SqQueue;二,循环队列1)初始化void InitQueue(SeQueue &Q){ Q.front = Q.rear = 0;}2)判队空bool isEmpty(SqQueue Q){ if (Q.front == Q.rear) return true; return
2022-05-14 23:26:45
109
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人