From 5bb59a7444d28efd5c7ba26d0a77baf252cb752b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E6=AD=A3=E8=B4=A2?= <3047498954@qq.com> Date: Tue, 8 Jan 2019 19:31:13 +0800 Subject: [PATCH] first commit --- 主菜单.c | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 主菜单.c 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; +}