This commit is contained in:
JiXieShi
2024-09-21 16:07:31 +08:00
parent 4e53f936d8
commit d2e5789476
27 changed files with 129 additions and 67 deletions

View File

@@ -5,7 +5,7 @@
#ifndef HW_LIB_T_LIST_H
#define HW_LIB_T_LIST_H
extern void Test_List();
extern void Test_List(void *pVoid);
extern void Test_Queue();
extern void Test_Queue(void *pVoid1);
#endif //HW_LIB_T_LIST_H

View File

@@ -38,7 +38,7 @@ void print(List_t *list) {
}
}
void Test_List() {
void Test_List(void *pVoid) {
List_t list;
list_init(&list); // 初始化链表
@@ -102,7 +102,7 @@ void Test_List() {
list_destroy(&list, NULL); // 销毁链表
}
void Test_Queue() {
void Test_Queue(void *pVoid) {
Queue_List_t *deque = newQueue_List(sizeof(int)); // 创建一个int类型的双端队列
// 测试入队操作
@@ -141,4 +141,4 @@ void Test_Queue() {
printf("Pop value from front: %d\n", *popVal);
}
delQueue_List(deque);
}
}