Skip to content

Commit

Permalink
feat: 添加题库happy.json和更新学生信息
Browse files Browse the repository at this point in the history
  • Loading branch information
sd0ric4 committed Jul 13, 2024
1 parent 2403862 commit b53f1a5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions QuestionBank/随便.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[{
"chapter": "9",
"type": "单选题",
"title": "你好啊你好",
"options": [{
"A": "不好"
}, {
"B": ""
}, {
"C": "很好"
}, {
"D": "很不好"
}],
"correctAnswer": "B"
}]
2 changes: 1 addition & 1 deletion src/exercise.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ void generateExercise(ExerciseDataBase *db, int numQuestions) {
printf("试卷和答案已分别生成并保存到文件\n");

// 生成 JSON 文件,到QUESTION_BANK_PATH目录下
char JsonFilename[32];
char JsonFilename[64];

snprintf(JsonFilename, sizeof(JsonFilename), "%s/%s.json", QUESTION_BANK_PATH, db->ExerciseName);
generateJsonFile(db, JsonFilename);
Expand Down

0 comments on commit b53f1a5

Please sign in to comment.