Add files via upload

This commit is contained in:
2025-07-17 21:17:50 +08:00
committed by GitHub
parent ecdc668ae3
commit 4e240c6dc9
25 changed files with 1313 additions and 200 deletions
+8 -8
View File
@@ -8,14 +8,7 @@
#define GLOBALS_H
#include <stdbool.h>
#include "config.h"
// 用户结构体定义
typedef struct {
char username[MAX_USERNAME_LENGTH];
char password[MAX_PASSWORD_LENGTH];
bool isAdmin; // 是否为管理员
} User;
#include "types.h"
// 全局变量声明
extern Student students[MAX_STUDENTS]; // 学生数组
@@ -35,4 +28,11 @@ extern float highestScore; // 最高分
extern float lowestScore; // 最低分
extern bool statsNeedUpdate; // 统计信息是否需要更新
// 排序参数
extern int currentSortCriteria; // 当前排序依据
extern int currentSortOrder; // 当前排序顺序
// 统计缓存
extern StatisticsCache statsCache; // 统计分析缓存
#endif // GLOBALS_H