txt文件中学生信息如下:
#ID---------------->Name--------->Score#
0800301105 JACK 95.000000
0800201505 LUN 85.000000
0400820115 MARY 75.500000
0400850122 KATE 78.900002
0500201011 LILI 88.000000
结构体数组定义如下:
typedef struct tagStudentInfo
{ char ID[20];
char name[20];
float score;
}StudentInfo;
StudentInfo StuInfo[12];