1
0
mirror of https://github.com/Didnelpsun/CS408.git synced 2026-02-11 22:55:57 +08:00

更新树

This commit is contained in:
Didnelpsun
2021-04-25 23:46:32 +08:00
parent 5dc818f9af
commit 400009cb71
6 changed files with 255 additions and 0 deletions

View File

@@ -54,4 +54,12 @@ int GetSequenceQueueHead(SequenceQueue* queue, element_type* elem) {
// 根据队头指针赋值元素
*elem = queue->data[queue->front];
return 0;
}
// 判断顺序队是否为空
int IsSequenceQueueEmpty(SequenceQueue queue) {
if (queue.rear == queue.front) {
return 1;
}
return 0;
}