- 博客(3)
- 收藏
- 关注
原创 顺序栈C
#include #define Maxsize 100 typedef int ElemType; typedef struct seqlist { ElemType data[Maxsize]; int top; }*Seqlist; void Init_seq(Seqlist &L) { L->top=-1; } int Seq_empty(Seqlist L) { if(L->to
2014-12-22 21:55:16 151
原创 线性链表C
#include #include #define NULL 0 typedef int ElemType; typedef struct node{ ElemType data; node *next; }*Node; void Creat_list(Node &head)//头插法插入新节点 { int x; head->next=NULL; Node p=new node; pr
2014-12-21 20:35:41 186
原创 线性顺序表C
#include typedef int ElemType; typedef struct list { ElemType data[50]; int listlen; }; void Init_list(list *L) { L->listlen=0; } void Creat_list(list *L) { printf("你想创建列表含有几个元素?\n"); int n,i=0;
2014-12-21 17:16:30 192
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人