commit 5bb59a7444d28efd5c7ba26d0a77baf252cb752b Author: 彭正财 <3047498954@qq.com> Date: Tue Jan 8 19:31:13 2019 +0800 first commit diff --git a/主菜单.c b/主菜单.c new file mode 100644 index 0000000..da3d5d4 --- /dev/null +++ b/主菜单.c @@ -0,0 +1,82 @@ +#include +#include +#include +#define m 1 +struct student +{ + int id; + int class; + char name[10]; + int time_beginhour; + int time_beginminute; + int time_endhour; + int time_endminute; +}student[200]; +void select(); +void count(); +void add(); +void reduce(); +void classfind(); +void idfind(); +void namefind(); +int main() +{ + int n; + system("color B4"); + printf("\n\n\n\t\t\t\t\t\t ˵\n"); + printf("\t\t\t\t\t\t 1.ѧϢ\n"); + printf("\t\t\t\t\t\t 2.\n"); + printf("\t\t\t\t\t\t 3.ѧ\n"); + printf("\t\t\t\t\t\t 4.ɾѧ\n"); + printf("\t\t\t\t\t\t 5.༶\n"); + printf("\t\t\t\t\t\t 6.ѧŲ\n"); + printf("\t\t\t\t\t\t 7.\n"); + printf("\t\t\t\t\t\t ѡ:"); + scanf("%d",&n); + switch(n) + { + case 1: + { + system("cls"); + select(); + break; + } + case 2: + { + system("cls"); + count(); + break; + } + case 3: + { + system("cls"); + add(); + break; + } + case 4: + { + system("cls"); + reduce(); + break; + } + case 5: + { + system("cls"); + classfind(); + break; + } + case 6: + { + system("cls"); + idfind(); + break; + } + case 7: + { + system("cls"); + namefind(); + break; + } + } + return 0; +}