Add files via upload

This commit is contained in:
2025-07-16 00:15:38 +08:00
committed by GitHub
parent 8f2d9ef4ad
commit dc652ffb31
30 changed files with 2875 additions and 752 deletions
+19
View File
@@ -0,0 +1,19 @@
/**
* @file validation.h
* @brief 数据验证函数头文件
* @note 包含学生信息各字段的验证函数声明
*/
#ifndef VALIDATION_H
#define VALIDATION_H
#include <stdbool.h>
// 数据验证函数
bool isValidScore(float score); // 验证成绩是否有效
bool isValidStudentId(const char* id); // 验证学号是否有效
bool isValidName(const char* name); // 验证姓名是否有效
bool isValidGender(char gender); // 验证性别是否有效
bool isValidAge(int age); // 验证年龄是否有效
#endif // VALIDATION_H