From fa347a93931856f1bd469cbc539c160b748d0f49 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 11 Jan 2019 13:24:26 +0800 Subject: [PATCH] first commit --- 机房收费管理系统(最终版本).c | 237 ----------------------- 1 file changed, 237 deletions(-) delete mode 100644 机房收费管理系统(最终版本).c diff --git a/机房收费管理系统(最终版本).c b/机房收费管理系统(最终版本).c deleted file mode 100644 index 8dacc91..0000000 --- a/机房收费管理系统(最终版本).c +++ /dev/null @@ -1,237 +0,0 @@ - #include - #include - #include - void insert();//¼ѧϢ - void findCLASS();//༶ѯ - void findNO();//ѧŲѯ// - void findNAME();//ѯ - void money();// - void addstu();//ѧ - void addfile(); //ӵļ - struct time//ʱṹ - { - int hour; - int min; - }; - struct STUDENT//ѧṹ - { - - char NO[20]; - char CLASS[20]; - char NAME[20]; - int time_hour; - int time_min; - struct time begin,end;//Ƕ׶ѧṹ - }; - struct STUDENT stu[30]; - static int i=0; - - int main()// - { - int i; - for(;;) - { - printf("\t\t\t##########################\n"); - printf("\t\t\t ˵ \n"); - printf("\t\t\t1 ѧϢ\n"); - printf("\t\t\t2 ѧŲѧϢ\n"); - printf("\t\t\t3 ༶ѧ\n"); - printf("\t\t\t4 ѧ\n"); - printf("\t\t\t5 ϻ\n"); - printf("\t\t\t6 ѧϢ\n"); - printf("\t\t\t7 ѧϢļ\n"); - printf("\t\t\t8 رϵͳ"); - printf("\n\n\n\t\t\tӦŽв\n\n\t\t\t"); - scanf("%d",&i); - switch(i) - { - case 1: - { - system("cls"); - insert(); - - }break; - case 2: - { - system("cls"); - findNO(); - }break; - case 3: - { - system("cls"); - findCLASS(); - } break; - case 4: - { - system("cls"); - findNAME(); - }break; - case 5: - { - system("cls"); - money(); - }break; - case 6: - { - system("cls"); - addstu(); - }break; - - case 7: - { - system("cls"); - addfile(); - }break; - case 8: - { - return 0; - } - - - - } - } - system("pause") ; - return 0; - } - void insert()//¼ - { - printf("ѧѧ:\n"); - scanf("%s",&stu[i].NO); - printf("ѧ༶:\n"); - scanf("%s",&stu[i].CLASS); - printf("ѧ:\n"); - scanf("%s",&stu[i].NAME); - printf("ʼʱ:\n"); - scanf("%d:%d",&stu[i].begin.hour,&stu[i].begin.min); - i=i+1; - system("pause"); - system("cls"); - } - void findNO()//ѧŲ - { - int m; - char no[100]; - printf("ѧ:"); - scanf("%s",&no); - for(m=0;m