|
|
|
@ -341,7 +341,7 @@ Step 2.4: if c == CMD_SAVE then 保存数据
|
|
|
|
|
Step 2.5: if c == CMD_PRINT then 打印数据
|
|
|
|
|
Step 2.6:
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
#### save_data
|
|
|
|
|
|
|
|
|
@ -351,7 +351,7 @@ Step 3: if 打开文件失败 then 提示打开文件失败并结束
|
|
|
|
|
Step 4: 将所有库存记录写入文件
|
|
|
|
|
Step 5: 关闭文件
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
#### add_data
|
|
|
|
|
|
|
|
|
@ -362,7 +362,7 @@ Step 4: 输入零件名和库存数量
|
|
|
|
|
Step 5: 添加新零件到数据
|
|
|
|
|
Step 6: 提示添加成功
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
### query_data
|
|
|
|
|
|
|
|
|
@ -372,7 +372,7 @@ Step 3:查询最后一个学生结束
|
|
|
|
|
Step 4:if未查询到提示学生不存在
|
|
|
|
|
Step 5:else打印学生信息
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### printf_data
|
|
|
|
|