diff --git a/班级档案管理系统.cpp b/班级档案管理系统.cpp new file mode 100644 index 0000000..4c09fa8 --- /dev/null +++ b/班级档案管理系统.cpp @@ -0,0 +1,273 @@ +#include +#include +#include +#define file "d:\\student.txt" +#define N 3 +struct student{//ṹ + char number[20]; + char name[20]; + char sex; + int age; + char beizhu[100]; +}; +/*hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh*/ + void menu()//˵ + { + 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.˳ѧϢϵͳ +\n");//ExitFuction + printf("\n++++++++++++++++++++++++++++++++++++++++++++++\n"); + } +/*hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh*/ + void Entry(struct student arr[],int n)//luru + { + int i; + for(i=0;i0&&select<7) +{ +switch(select) +{ +case 1:Entry(arr,N); +menu(); +break; +case 2:Display(arr,N); +menu(); +break; +case 3: save(arr,N); +menu(); +break; +case 4:Delete(arr,N); +menu(); +break; +case 5:Modify(arr,N); +menu(); +break; +case 6:Search(arr,N); +menu(); +break; +case 7: exit(0); //˵ֵΪ7 +} +} + return 0; +} diff --git a/班级档案管理系统.exe b/班级档案管理系统.exe new file mode 100644 index 0000000..5d95a6a Binary files /dev/null and b/班级档案管理系统.exe differ