mirror of
https://github.com/Didnelpsun/CS408.git
synced 2026-02-11 22:55:57 +08:00
更新树
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user