2022年4月22日

静态栈

摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 #define Length 10 5 6 struct Stack 7 { 8 int element[Length]; 9 int cursor; 10 11 void initial() 12 { 1 阅读全文

posted @ 2022-04-22 14:48 lshuai 阅读(27) 评论(0) 推荐(0)

双向链表

摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 // 节点结构 5 6 struct LinkedList 7 { 8 // 节点 9 struct Node 10 { 11 int item = 0; 12 Node *prev; 13 Node *n 阅读全文

posted @ 2022-04-22 13:24 lshuai 阅读(21) 评论(0) 推荐(0)

2022年4月18日

动态顺序表

摘要: #include <stdio.h> #include <stdlib.h> // 默认长度 #define DEFAULT_CAPACITY 10 // int 类型 typedef struct{ int *elements; // 数组指针 int length; // 数组长度 int si 阅读全文

posted @ 2022-04-18 17:21 lshuai 阅读(36) 评论(0) 推荐(0)

导航