ArrayList:ArrayList 就像在 C 中一样

时间:2021-06-02 17:21:56
【文件属性】:
文件名称:ArrayList:ArrayList 就像在 C 中一样
文件大小:14KB
文件格式:ZIP
更新时间:2021-06-02 17:21:56
C ArrayList,C 语言中的高级链表库 用 在entry.h定义 object object的结构,例如: struct entry { unsigned int id; char nom[ 100 ]; char sexe; pointers entries; }; typedef struct entry object; 列表的结构定义如下: typedef struct { struct list_head *head; object *obj; } ArrayList; 它包含列表的头部,包含指向列表中第一项和最后一项的指针以及一个可重复使用的对象以迭代或附加到列表中。 您可以添加任意数量的字段,只要您保留包含指向列表中上一个和下一个对象的指针的entries字段,即可在列表中添加、移动、删除、排序。 id用于对列表进行索引,
【文件预览】:
ArrayList-master
----.gitignore(22B)
----package.json(320B)
----Makefile(901B)
----tools.h(171B)
----entry.c(2KB)
----queue.h(28KB)
----README.md(5KB)
----list.h(1KB)
----list.c(3KB)
----examples.c(1KB)
----entry.h(916B)
----tools.c(2KB)

网友评论