- 博客(3)
- 收藏
- 关注
原创 创建一个有n个结点的非空单向链表
# include <stdio.h> # include <stdlib.h> //定义结构体 typedef struct node{ int data; //数据域 struct node * next; //指针域 }ElemSN; //将 struct node重命名为 ElemSN //建链表 ElemSN * CreateLink(int a[],int n) { ElemSN *h,*p,*t; //h为头指针 h=NULL; //头指针指向.
2022-06-08 11:29:44
1630
1
原创 逆向输出链表所有结点数据域的值
# include <stdio.h> # include <stdlib.h> //定义结构体 typedef struct node{ int data; //数据域 struct node * next; //指针域 }ElenSN; //将 struct node重命名为 ElenSN //建链表 ElenSN * CreateLink(int a[],int n) { ElenSN *h,*p,*t; //h为头指针 h=NULL; //头指针指向.
2021-04-29 21:05:09
251
2
原创 统计一个非空单向链表的个数
# include <stdio.h> # include <stdlib.h> //定义结构体 typedef struct node{ int data; //数据域 struct node * next; //指针域 }ElemSN; //将 struct node重命名为 ElemSN //建链表 ElemSN * CreateLink(int a[],int n) { ElemSN *h,*p,*t; //h为头指针 h=NULL; //头指针指向.
2021-04-29 20:52:47
80
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人