遍历链表:单向链表的插入、查找和遍历方法

#includestdio.h #includeconio.h #define N 3 int Link_Length = N; //记录链表的长度 //定义结构体 struct t_node { int data; struct t_node *next; }; 定义别名 typedef struct t_node Node; //定义链表变量 Node * example_lin... [阅读全文]

单向链表:list-c单向链表构建立表代码

/*@file listtest.c */ /*单链表构造表list*/ /*mingGW编译OK*/ # "allhead.h" # "list.h" # "fun.h" void { LinkList L; ElemType e,e0; Status i; j,k; InitList(&L); for(j=1;j=5;j) i=ListInsert(L,... [阅读全文]
1 共1条 分1页