更新main_menu.c文件和.gitignore配置

This commit is contained in:
2025-07-20 16:16:50 +08:00
parent 0838770e73
commit f29fbb8394
2 changed files with 103 additions and 70 deletions
+32
View File
@@ -0,0 +1,32 @@
# IDE配置文件
.trae/
# 编译输出
*.exe
*.o
*.obj
# 临时文件
*.tmp
*.temp
# 系统文件
.DS_Store
Thumbs.db
# 备份文件
*.bak
*.backup
# 日志文件
*.log
# 调试文件
*.pdb
*.ilk
# Visual Studio Code
.vscode/settings.json
# 构建目录
build/
+2 -1
View File
@@ -92,7 +92,8 @@ void displayStatisticsMenu()
printf("0. 返回主菜单\n"); printf("0. 返回主菜单\n");
printf("\n"); printf("\n");
printf("当前学生总数: %d\n", studentCount); printf("当前学生总数: %d\n", studentCount);
if (studentCount > 0) { if (studentCount > 0)
{
printf("系统平均分: %.2f\n", overallAverageScore); printf("系统平均分: %.2f\n", overallAverageScore);
} }
printf("\n"); printf("\n");