- 博客(3)
- 收藏
- 关注
原创 数据结构-链表的基本操作
#include"stdio.h" #include"string.h" #include"stdlib.h" typedef struct jiege { int q; struct jiege *next; }*Node,node; //-----------------------------------------------------// void print(Node biao)//show函数 { int c=1; biao=biao->next; if(biao==N.
2021-12-30 15:18:23
144
原创 最简单的建立动态链表,用typedef
#include <stdio.h> #include <stdlib.h> typedef struct node { int data; struct node *next;//存放下一个结点的指针 }*Node,node; int main() { int i,n; scanf("%d",&n); Node p,q,head=NULL;//head是链表的头指针,通过它找到链表 for(i=0;i<n;i++)...
2021-12-30 14:38:02
708
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人