Data structure expriment 1
|
Go to the documentation of this file.
8 #ifndef EXPERIMENT1_LIST_H
9 #define EXPERIMENT1_LIST_H
72 #endif //EXPERIMENT1_LIST_H
List * init(int reserve)
Definition: list.c:82
People * head
标记链表头位置
Definition: list.h:21
List * destroy(List *list)
Definition: list.c:103
People * insert(List *list, People *now, int id)
Definition: list.c:31
void free_l(List *list, People *now)
Definition: list.c:20
struct st_people * prev
后一个节点
Definition: list.h:14
struct st_people * next
前一个节点
Definition: list.h:13
int id
人员号
Definition: list.h:12
List * init(int reserve)
Definition: list.c:82
List * create_list(int id)
Definition: list.c:73
People * malloc_l(List *list)
Definition: list.c:11
List * destroy(List *list)
Definition: list.c:103
People * data
人员节点数组,可看做内存
Definition: list.h:19
void free_l(List *list, People *now)
Definition: list.c:20
People * available
标记数组中第一个空节点的位置
Definition: list.h:20
List * create_list(int n)
Definition: list.c:73
People * malloc_l(List *list)
Definition: list.c:11
People * insert(List *list, People *now, int id)
Definition: list.c:31