第十一天
来源:互联网 发布:武汉纬创纬尊软件 编辑:程序博客网 时间:2024/05/01 11:07
链表模版:
宿主结构(带数据的结构体)
typedef struct student{
int age;
struct list_head list;
}student;
struct list_head{
struct list_head* prev;
struct list_head* next;
}
创建宿主结构
student *std1=(student *)malloc(sizeof(student));
std1->age=10;
init_list(&(std1->list));
链栈:头插法,头删法
特点:先进后出。
压栈就是入栈。
struct Stack{ int data; struct Stack *next;}
创建栈:
Stack *create(int data);
压栈bool push_stack(Stack *p,int data);
出栈:
bool pop_stack(Stack *p,int data);
0 0
- 第十一天
- 第十一天
- 第十一天
- 第十一天
- 第十一天
- 第十一天
- 世界杯第十一天
- 第十一天 优先级
- 第十一天:听课笔记
- 第十一天:总结
- 第十一天总结0403
- 5.20 第十一天 坚决
- 星海第十一天
- 实习日记->第十一天
- 程序学习第十一天
- Java第十一天
- 浪潮实习第十一天
- 第十周第一天
- 【随想记】android开发初步经历经验
- [LeetCode]Serialize and Deserialize Binary Tree
- NodeAsp是一套Classic ASP框架,借鉴了NodeJS的模块化思想,让您可以使用全新的理念愉快地书写ASP程序
- iphone屏幕适配规则及启动图设置方法
- 使用HttpURLConnection发送Post/Get请求
- 第十一天
- java层将outputstream输出到jsp报错:getOutputStream() has already been called for this response
- layout_weight="" 布局
- 插入排序
- 迷宫求解
- [Android Studio] AIDL
- QTableWidget为一列数据排序,整形数据排序 #Qt Creator
- 施华洛世奇打造最美智能手环
- 行人检测“Joint Deep Learning for Pedestrian Detection”