大哥,你分都不给想,白要个程序哎,我帮你,已给你发站内信。 以下是部分程序代码: #include "stdio.h" #include "ctype.h" #include "conio.h" #include "stdlib.h" #include "process.h" #include "string.h" /*Creat student's information data type*/ struct stuinfo{ char num[9]; int base; int major; int optional; int humanity; int exp; }; /*Creat link node data type and creat head, rear and current pointer*/ struct LinkNode{ struct stuinfo data; struct LinkNode *next; }*first,*end,*current; char menu_select(void);/*menu function*/ void EnterCredit(void);/*insert a information*/ void DisplayOne(void);/*display a information*/ void DisplayAll(void);/*display all the information*/ void DisplayClass(void);/*display all the information in the same class*/ void Delete(void);/*delete one information*/ void Modify(void);/*modify one information*/ void Sort(); void SortByBase(); void SortByMajor(); void SortByOptional(); void SortByHum(); void SortByExp(); void Statistic(); int SaveData();/*save the information to binary file and txt file*/ int LoadData();/*load information*/ int IsValid(struct stuinfo);/*test the data whether valid or not*/ void DestroyLink(void);/*destroy the link list*/ main() { char choice; first=end=current=NULL; system("cls");/*run dos command to clean screen*/ /*display the menu and get choice, then call function*/ for(;;){ choice=menu_select(); switch(choice){