|
|
|
@ -236,10 +236,10 @@
|
|
|
|
|
假设文件 `a.csv` 中,以 CSV (Comma-Separated Values)格式保存了如下记录:
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
103,显示器,8
|
|
|
|
|
104,手机,12
|
|
|
|
|
101,电脑,20
|
|
|
|
|
102,打印机,10
|
|
|
|
|
2214111035,小王,80
|
|
|
|
|
2214111033,叠沅,90
|
|
|
|
|
2214111028,小冯,100
|
|
|
|
|
1914110817,小苏,100
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
则读取记录的过程如下:
|
|
|
|
@ -257,10 +257,10 @@
|
|
|
|
|
-------------------------------------------------------
|
|
|
|
|
| NUMBER | NAME | ON HAND |
|
|
|
|
|
-------------------------------------------------------
|
|
|
|
|
| 103 | 显示器 | 8 |
|
|
|
|
|
| 104 | 手机 | 12 |
|
|
|
|
|
| 101 | 电脑 | 20 |
|
|
|
|
|
| 102 | 打印机 | 10 |
|
|
|
|
|
|2214111035 | 小王 | 80|
|
|
|
|
|
|2214111033 | 叠沅 | 90|
|
|
|
|
|
|2214111028 | 小冯 | 100|
|
|
|
|
|
|1914110817 | 小苏 | 100|
|
|
|
|
|
-------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
1 读取 | 2 保存 | 3 打印 | 4 查询 | 5 添加
|
|
|
|
@ -292,10 +292,10 @@ a: No such file or directory
|
|
|
|
|
```
|
|
|
|
|
请选择:9
|
|
|
|
|
图表
|
|
|
|
|
2214111035: 小王 | ******** (8)
|
|
|
|
|
2214111033: 叠沅 | ************ (12)
|
|
|
|
|
2214111027: 小冯 | ******************** (20)
|
|
|
|
|
102 : 小苏 | ********** (10)
|
|
|
|
|
2214111035: 小王 | ******* (80)
|
|
|
|
|
2214111033: 叠沅 | *******(90)
|
|
|
|
|
2214111028: 小冯 |******** (100)
|
|
|
|
|
1914110817 :小苏 | ********** (100)
|
|
|
|
|
|
|
|
|
|
1 读取 | 2 保存 | 3 打印 | 4 查询 | 5 添加
|
|
|
|
|
6 修改 | 7 删除 | 8 排序 | 9 图表 | 0 退出
|
|
|
|
|