c语言
那木桑
这个作者很懒,什么都没留下…
展开
-
c语言链表练习(创建、删除、插入链表)
/* 创建、删除链表;*/ #include<stdio.h> #include<malloc.h> #define LEN sizeof(struct student) struct student{ int num; struct student *next; }; int n; //建立链表函数 struct student *creat() { struct stu...原创 2019-05-03 15:53:39 · 533 阅读 · 0 评论 -
C语言链表练习(2)
已知有a,b两个链表,每个链表的结点包括学号,成绩,要求把两个链表合并起来,并按学号升序排列; 建立链表 以链表a为基础,像升序插入结点一样,将链表b中的每个结点学号进行比较,再插入 注意过程中的特殊位置(开头,链表结尾) #include<stdio.h> #include<malloc.h> #define LEN sizeof(struct student) ty...原创 2019-05-03 19:06:16 · 605 阅读 · 0 评论