|
|
@ -83,7 +83,25 @@
|
|
|
|
确定要退出吗?(Y/N): y
|
|
|
|
确定要退出吗?(Y/N): y
|
|
|
|
程序退出
|
|
|
|
程序退出
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
#### C5: 查询库存记录
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
选择菜单命令 `4`,提示输入学号,若该学号存在,则输出学号、姓名、成绩;否则提示学生不存在并结束。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
请选择:4
|
|
|
|
|
|
|
|
输入学号:101
|
|
|
|
|
|
|
|
学号:101
|
|
|
|
|
|
|
|
名字:小米
|
|
|
|
|
|
|
|
成绩:80
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 读取 | 2 保存 | 3 打印 | 4 查询 | 5 添加
|
|
|
|
|
|
|
|
6 修改 | 7 删除 | 8 排序 | 9 图表 | 0 退出
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
请选择:4
|
|
|
|
|
|
|
|
输入学号:100
|
|
|
|
|
|
|
|
学号不存在.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
#### C7: 修改库存记录
|
|
|
|
#### C7: 修改库存记录
|
|
|
|
|
|
|
|
|
|
|
@ -114,5 +132,37 @@
|
|
|
|
学生不存在.
|
|
|
|
学生不存在.
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
#### C9: 库存记录排序
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
选择菜单命令 `8`,对学生按学号从小到大排序。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
请选择:3
|
|
|
|
|
|
|
|
-------------------------------------------------------
|
|
|
|
|
|
|
|
| NUMBER | NAME | ON HAND |
|
|
|
|
|
|
|
|
-------------------------------------------------------
|
|
|
|
|
|
|
|
| 101 | 小米 | 80 |
|
|
|
|
|
|
|
|
| 100 | 小明 | 70 |
|
|
|
|
|
|
|
|
-------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 读取 | 2 保存 | 3 打印 | 4 查询 | 5 添加
|
|
|
|
|
|
|
|
6 修改 | 7 删除 | 8 排序 | 9 图表 | 0 退出
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
请选择:8
|
|
|
|
|
|
|
|
排序
|
|
|
|
|
|
|
|
排序已完成
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 读取 | 2 保存 | 3 打印 | 4 查询 | 5 添加
|
|
|
|
|
|
|
|
6 修改 | 7 删除 | 8 排序 | 9 图表 | 0 退出
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
请选择:3
|
|
|
|
|
|
|
|
-------------------------------------------------------
|
|
|
|
|
|
|
|
| NUMBER | NAME | ON HAND |
|
|
|
|
|
|
|
|
-------------------------------------------------------
|
|
|
|
|
|
|
|
| 100 | 小明 | 70 |
|
|
|
|
|
|
|
|
| 101 | 小米 | 80 |
|
|
|
|
|
|
|
|
-------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|