📁Order模块
搭建储存和操作订单信息的底层数据结构
当前进度
.---+- include -+- tools -+- color.h
| | +- hint.h
| | +- info.h
| |
| +- user -+- user.h
| |
| +- good -+- good.h
| |
| +- order -+- order.h <---
| |
| +- config.h <---
|
+- src -+- tools -+- color.c
| +- hint.c
| +- info.c
|
+- data -+- id.txt
| +- user.txt
| +- good.txt
| +- order.txt <---
|
+- user -+- user.c
|
+- good -+- good.c
|
+- order -+- order.c <---
|
+- main.c模块头文件接口设计
模块源文件实现
在config.h中加入约定的最大订单数量:
编写接口的实现模块
至此,我们搭建好了整个项目所需的所有底层数据结构,并且作了充分的封装。
实际开发过程中的封装一般不会一开始就是充分的,在后续的过程中可能要很多次得回头完善这些数据结构。
砖瓦皆备,现在可以稍微休息一下,我们下面要开始建房子了。
最后更新于
这有帮助吗?