#include #include #include #include #include #define load sizeof(student) #define N 7 void read(); void save(); int size=3; struct student { char num[10]; char name[20]; int scorem,scoreq,scoreg,scorey; char ximing[20]; }stu[N],temp; void input() { system("cls"); printf("\t************输入界面************\n"); printf("请输入运动员号码,姓名,100成绩,铅球成绩,跳高成绩,跳远成绩,系名:\n"); for(int i=0;itm_year+1900,pt->tm_mon+1,pt->tm_mday); printf("======================菜单=====================\n"); printf(" 1.输入 2.查找 \n"); printf(" 3.排序 4.修改 \n"); printf(" 5.得分 6.删除 \n"); printf(" 7.插入 8.保存 \n"); printf(" 9.显示 0.退出\n"); printf("===============================================\n"); printf("请选择功能<0-9>:[ ]\b\b"); scanf("%d",&ch1); switch(ch1) { case 1: input(); break; case 2: find(); break; case 3: paixu(); break; case 4: xiugai(); break; case 5: defen(); break; case 6: shancchu(); break; case 7: charu(); break; case 8: save(); break; case 9: read(); break; case 0: exit(0); default: printf("未进行任何操作!"); } printf("\n"); printf("想要继续操作请按y\n"); getchar(); scanf("%2c",&ch2); }while(ch2=='y'); } int main(void) { system("color f"); //Logon(); menu(); }