struct course{
char CourseName[5];
int CourseID;
int CourseSection;
};
typedef struct student{
char FirstName[100];
char LastNmae[100];
char SSN[15];
int nCourseAttd;
struct course StdCourse[10];
struct student *next;
}*stdList;
----- student.txt----
Lisa //First Name
Sanders //Last Name
111-11-1111 //SSN
3 //选课数量
ENEE 114 0103 //所选课程1 对应课程结构体1
CMSC 412 0101 //所选课程2 对应课程结构体2
ENME 515 0123 //所选课程3 对应课程结构体3
Bart //First Name
Simpson //Last Name
222-22-2222 //SSN
1 //选课数量
CMSC 412 0101 //所选课程1
***** //以此作为文件结束
char CourseName[5];
int CourseID;
int CourseSection;
};
typedef struct student{
char FirstName[100];
char LastNmae[100];
char SSN[15];
int nCourseAttd;
struct course StdCourse[10];
struct student *next;
}*stdList;
----- student.txt----
Lisa //First Name
Sanders //Last Name
111-11-1111 //SSN
3 //选课数量
ENEE 114 0103 //所选课程1 对应课程结构体1
CMSC 412 0101 //所选课程2 对应课程结构体2
ENME 515 0123 //所选课程3 对应课程结构体3
Bart //First Name
Simpson //Last Name
222-22-2222 //SSN
1 //选课数量
CMSC 412 0101 //所选课程1
***** //以此作为文件结束