#include <stdio.h>
#include <stdlib.h>
typedef struct student
{
char number[20];
char name[20];
char sex[10];
char birth[20];
char province[20];
int score;
struct student *next;
}student;
void getSecond(student *s[],int sn);
void sort(student *s[],int sn);
int main()
{
FILE* fd;
int flag = 0;
int sn = 5;//读取前面十个学生的信息
student *s[5];
//申请内存空间
for(;flag<sn;flag++)
{
s[flag] = (student *) malloc(sizeof(student));
}
//打开文件
if((fd = fopen("d:\g.txt","r"))==NULL)
#include <stdlib.h>
typedef struct student
{
char number[20];
char name[20];
char sex[10];
char birth[20];
char province[20];
int score;
struct student *next;
}student;
void getSecond(student *s[],int sn);
void sort(student *s[],int sn);
int main()
{
FILE* fd;
int flag = 0;
int sn = 5;//读取前面十个学生的信息
student *s[5];
//申请内存空间
for(;flag<sn;flag++)
{
s[flag] = (student *) malloc(sizeof(student));
}
//打开文件
if((fd = fopen("d:\g.txt","r"))==NULL)