diff --git a/班级档案管理系统3.0.cpp b/班级档案管理系统3.0.cpp new file mode 100644 index 0000000..2f73a62 --- /dev/null +++ b/班级档案管理系统3.0.cpp @@ -0,0 +1,290 @@ +#include +#include +#include +#define file "d:\\student.txt" //Ĭϱd +#include +struct student{//ṹ + char number[20]; + char name[20]; + char sex[20]; + char age[20]; + char beizhu[100]; +}; +/*hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh*/ + void menu()//˵ + { + system("color fc"); + printf("\n ++++++++++++++++++++++++++++++++++++++++++++++++\n"); + printf(" + ӭ +\n"); + printf(" + ༶ϵͳ +\n"); + printf(" + 1.ѧϢ +\n");//Entry + printf(" + 2.ѧϢʾ +\n");//Display + printf(" + 3.ѧϢ +\n");//Save + printf(" + 4.ѧϢɾ +\n");//Delete + printf(" + 5.ѧϢ޸ +\n");//Modify + printf(" + 6.ѧϢѯ +\n");//Search + printf(" + 7.˳༶ϵͳ +");//ExitFuction + printf("\n ++++++++++++++++++++++++++++++++++++++++++++++++\n"); + } +/*hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhshhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh*/ + void Entry(struct student arr[],int n)//¼ѧϢ + { + int i; + for(i=0;i0&&select<7)) + { + printf("޷ṩҪĹO(_)Oлл"); + } + else + { + while(select>0&&select<7) + { + switch(select) + { + case 1: + printf("¼ѧ\n"); + scanf("%d",&N); + Entry(arr,N); system("pause");system("cls");menu();break; + case 2:Display(arr,N); system("pause");system("cls");menu();break; + case 3: save(arr,N); system("pause");system("cls");menu();break; + case 4:Delete(arr,N); system("pause");system("cls");menu();break; + case 5:Modify(arr,N); system("pause");system("cls");menu();break; + case 6:Search(arr,N); system("pause");system("cls");menu();break; + case 7: exit(0); //˵ֵΪ7 + } + printf("ѡ"); + scanf("%d",&select); + system("cls"); + } + } + return 0; +} +} diff --git a/班级档案管理系统3.0.exe b/班级档案管理系统3.0.exe new file mode 100644 index 0000000..83f861a Binary files /dev/null and b/班级档案管理系统3.0.exe differ