链表的创建与初始化
#include<stdio.h>
#include<stdlib.h>
typedef struct student
{
int a;
struct studemt *next;
} x;//定义一个结构体
x *Create(int n)
{
x *head,node,end;//定义头节点,普通节点,尾部节点
head=NULL; 将头节点初始化
head=(x)ma...
原创
2019-01-12 16:30:13 ·
2638 阅读 ·
0 评论