![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c语言
SevenDown777
为了能做自己,不断的努力中。。。
展开
-
单向链表的简单实现(C语言版)
单向链表的简单实现(C语言版)半夜睡不着觉,爬起来写了个链表哈哈!先偷懒直接代码注释啦; #include stdio.h> #include stdlib.h> //定义一个结构体代表链表结点 struct node{ int data; //结点中存放数据 struct node *next; //指向下一个结点原创 2018-02-05 02:39:51 · 761 阅读 · 0 评论 -
头插法建立链表(C语言版)
上次用尾插法建立的链表,这次改用头插法建立,代码如下:#include #include //头插法建立链表//定义链表结点 typedef struct node{ int data; struct node *next;}Lnode;//创建n个结点的链表,因为要通过参数改变指针变量,//所以形参采用二重指针形式,生成链表带有头结点; void原创 2018-02-06 23:49:14 · 10223 阅读 · 1 评论