Add files via upload

This commit is contained in:
2025-07-12 23:33:14 +08:00
committed by GitHub
parent 8c44e5f2f7
commit 73a396a9d9
20 changed files with 2652 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
/**
* @file globals.c
* @brief 全局变量定义文件
* @note 定义所有全局变量的实际存储空间
*/
#include "globals.h"
// 全局变量定义
Student students[MAX_STUDENTS]; // 学生数组
User users[MAX_USERS]; // 用户数组
int studentCount = 0; // 当前学生数量
int userCount = 0; // 当前用户数量
char currentUser[MAX_USERNAME_LENGTH] = ""; // 当前登录用户
bool isCurrentUserAdmin = false; // 当前用户是否为管理员
// 系统状态变量
bool systemInitialized = false; // 系统是否已初始化
bool dataModified = false; // 数据是否已修改
// 统计信息缓存
float overallAverageScore = 0.0; // 全体学生平均分
float highestScore = 0.0; // 最高分
float lowestScore = 100.0; // 最低分
bool statsNeedUpdate = true; // 统计信息是否需要更新