#include<stdio.h>
//构造结点
typedef struct lnode{
int data;
struct lnode *next;
} lnode;
//创建链表
lnode* creat()
{
lnode*p,*s,*head;
head=new lnode;
head->next=NULL;
p=head;
printf("请输入数值:\n");
while(1){
s
C语言创建线性链表
最新推荐文章于 2025-06-28 10:15:42 发布