学生信息管理系统源代码: #include #include #include #include #include #include struct student { char num[30]; int maths; char name[30]; int chinese; char clas[30]; int english; int total; float average; student *next; }; //◆1(1) void createlist(student * & head) //学生成绩文件导入功能(用链表储存) { char t[80],num0[30],name0[30],clas0[30]; int chinese0,maths0,english0; student *s,*p; ifstream instuf("student-score
txt",ios::in); if (
instuf) {cerrname0>>clas0>>chinese0>>maths0>>english0) { s=new student; strcpy(s->num,num0);strcpy(s->name,name0);strcpy(s->clas,clas0); s->chinese=chinese0;s->maths=maths0;s->english=english0; s->total=s->chinese+s->maths+s->english; s->average=float(s->total)/3; if (head==NULL) head=s; else p->next=s; p=s; } p->next=NULL; instuf
close(); } //◆1(2) void showlist(student *head) //学生成绩信息显