建立一个有3名学生数据的单向动态链表,如下图所示,只须包含学生学号和成绩。要求:(1)、在函数外申明学生类型;(2)、链表结点是动态创建的;(3)、链表的建立用名为create的函数完成。
代码段:
#include <stdio.h>
#include <malloc.h>
#define LEN sizeof(struct student)
struct student
{
long num;
float score;
struct student *next;
};
int n;
struct student