建立链表,输出链表
#include <stdio.h>
#include <malloc.h>
#define LEN sizeof(struct Student)
struct Student
{
long num;
float score;
struct Student*next;
};
int n;
struct Student*creat() //建立链表函数
{
struct Student*head;
struct Student*p1,*p2