随笔分类 -  数据结构

摘要:顺序栈 代码: #include <stdio.h> #include <stdlib.h> #include<malloc.h> typedef struct stack{ int *top; int *base; int size; }stack,*Pstack; init_stack(Psta 阅读全文
posted @ 2020-10-21 16:57 ch0bits 阅读(163) 评论(0) 推荐(0)
摘要:1.顺序表 手敲的代码: #include <stdio.h> #include <stdlib.h> typedef struct table{ int *pBase; int length; int cnt; }Student; //Student p1; init_arr(Student *p 阅读全文
posted @ 2020-10-17 13:25 ch0bits 阅读(218) 评论(0) 推荐(0)