-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.c
35 lines (29 loc) · 914 Bytes
/
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include <stdio.h>
#include "globals.h"
#include "student.h"
#include "course.h"
#include "score.h"
#include "statistics.h"
int main() {
int choice;
do {
printf("1. 学生信息管理\n");
printf("2. 课程信息管理\n");
printf("3. 成绩信息管理\n");
printf("4. 成绩统计分析\n");
printf("5. 判断毕业资格\n");
printf("6. 退出系统\n");
printf("请输入选择:");
scanf("%d", &choice);
switch (choice) {
case 1: manageStudent(); break;
case 2: manageCourse(); break;
case 3: manageScore(); break;
case 4: analyzeStatistics(); break;
case 5: checkGraduation(); break;
case 6: printf("退出系统。\n"); break;
default: printf("无效输入,请重新选择。\n");
}
} while (choice != 6);
return 0;
}