![](https://csdnimg.cn/release/download_crawler_static/87199275/bg9.jpg)
typedef struct student //建立学生类
{
char num[20]; //学号
char name[20]; //XX
int math; //数分
int English; //英语
int Data; //数据构造
struct student *next; //指针
}student;
student *head=NULL; //头指针
(5) 信息输入模块
对应函数为 void create(),可用链表建立学生信息,所以先要建立一个头结点
p1=(student *)malloc(sizeof(student));//建立头结点
然后让指针指向下一个结点,依次根据用户输入的学生个数循环建立链表〔学生信息〕
所以主要循环为 while
while(number<numb) //循环输入学生信息
{
p2=(student *)malloc(sizeof(student));//建立结点
scanf("%s %s %d %d %d",p2->num,p2->name,&p2->math,&p2->English,&p2->Data); //
输入学生信息
if(p2->num==0)