Skip to content

Commit

Permalink
fix bugs, close #1
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoaer committed Jan 15, 2021
1 parent 4042bf1 commit f1871c6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions question/bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,12 @@ func (e *entity) ProblemInOrder() {
}
fmt.Println("题目已刷完,是否清空刷题记录以便二刷?(y/n)")
var answer string
fmt.Scanf("%s", &answer)
fmt.Scan(&answer)
if answer == "y" {
e.history.Progress = 0
e.SaveHistory()
fmt.Println("已清空,正在退出...")
}
os.Exit(0)
}

func (e *entity) ProblemInRandomOrder() {
Expand Down Expand Up @@ -96,7 +95,6 @@ func (e *entity) ProblemForExam() {
e.SaveHistory()
}
fmt.Println("模拟考试结束,正在退出...")
os.Exit(0)
}

func (e *entity) ProblemWrongBefore() {
Expand All @@ -114,5 +112,4 @@ func (e *entity) ProblemWrongBefore() {
e.SaveHistory()
}
fmt.Println("错题本已刷完,正在退出...")
os.Exit(0)
}

0 comments on commit f1871c6

Please sign in to comment.