#include"stdio.h"
#include"stdlib.h"
//定义结构体
struct list
{
int data;
struct list *next;
};
//创建新链表的函数
struct list *creat()
{
struct list *head,*p1,*p2;
int n;
head=(struct list*)malloc(sizeof(struct list));
p1=head;
do
{
scanf("%d",&n);
p2=(struct list
c语言链表新建,插入,删除,输出
最新推荐文章于 2024-06-20 11:47:52 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)