|
|
|
@ -364,24 +364,24 @@ ReadfromFile
|
|
|
|
|
详细设计
|
|
|
|
|
针对概要设计
|
|
|
|
|
## main
|
|
|
|
|
Step 1:初始化
|
|
|
|
|
Step 2:根据用户选择的命令执行相应的操作
|
|
|
|
|
Step 2.1:显示菜单
|
|
|
|
|
Step 2.2:选择菜单命令 c
|
|
|
|
|
Step 2.3:if c == 1 then ReadScore
|
|
|
|
|
Step 2.4:if c == 2 then AverSumofEveryStudent
|
|
|
|
|
Step 2.5:if c == 3 then AverSumofEveryCourse
|
|
|
|
|
Step 2.6:if c == 4 then SortbyScore(Descending)
|
|
|
|
|
Step 2.7:if c == 5 then SortbyScore(Ascending)
|
|
|
|
|
Step 2.8:if c == 6 then AsSortbyNum
|
|
|
|
|
Step 2.9:if c == 7 then SortbyName
|
|
|
|
|
Step 2.10:if c == 8 then SearchbyNum
|
|
|
|
|
Step 2.11:if c == 9 then SearchbyName
|
|
|
|
|
Step 2.12:if c == 10 then StatisticAnalysis
|
|
|
|
|
Step 2.13:if c == 11 then PrintScore
|
|
|
|
|
Step 2.14:if c == 12 then WritetoFile
|
|
|
|
|
Step 2.15:if c == 13 then ReadfromFile
|
|
|
|
|
Step 2.16:if c == 0 then exit
|
|
|
|
|
Step 1:初始化,
|
|
|
|
|
Step 2:根据用户选择的命令执行相应的操作,
|
|
|
|
|
Step 2.1:显示菜单,
|
|
|
|
|
Step 2.2:选择菜单命令 c,
|
|
|
|
|
Step 2.3:if c == 1 then ReadScore,
|
|
|
|
|
Step 2.4:if c == 2 then AverSumofEveryStudent,
|
|
|
|
|
Step 2.5:if c == 3 then AverSumofEveryCourse,
|
|
|
|
|
Step 2.6:if c == 4 then SortbyScore(Descending),
|
|
|
|
|
Step 2.7:if c == 5 then SortbyScore(Ascending),
|
|
|
|
|
Step 2.8:if c == 6 then AsSortbyNum,
|
|
|
|
|
Step 2.9:if c == 7 then SortbyName,
|
|
|
|
|
Step 2.10:if c == 8 then SearchbyNum,
|
|
|
|
|
Step 2.11:if c == 9 then SearchbyName,
|
|
|
|
|
Step 2.12:if c == 10 then StatisticAnalysis,
|
|
|
|
|
Step 2.13:if c == 11 then PrintScore,
|
|
|
|
|
Step 2.14:if c == 12 then WritetoFile,
|
|
|
|
|
Step 2.15:if c == 13 then ReadfromFile,
|
|
|
|
|
Step 2.16:if c == 0 then exit,
|
|
|
|
|
## 详细设计
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|