|
|
|
@ -629,6 +629,47 @@ Book* read1()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
![流程图](text.drawio)
|
|
|
|
|
## 概要设计
|
|
|
|
|
系统主要为开始界面和数据处理两大模块
|
|
|
|
|
开始界面即显示主要功能
|
|
|
|
|
数据处理包括:
|
|
|
|
|
查询图书馆的总信息
|
|
|
|
|
查询图书馆藏书信息
|
|
|
|
|
存入新书
|
|
|
|
|
旧书处理
|
|
|
|
|
根据书名检索书刊信息
|
|
|
|
|
查询读者的借阅信息
|
|
|
|
|
查询读者信息
|
|
|
|
|
读者借书
|
|
|
|
|
读者还书
|
|
|
|
|
文件保存
|
|
|
|
|
从文件读取
|
|
|
|
|
上述各模块通过主程序(main)进行调用,系统模块图如下:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 详细设计
|
|
|
|
|
针对概要设计
|
|
|
|
|
|
|
|
|
|
C1:void ShowLibInfo(const Book* book, const Reader* reader);\\查询图书馆的总信息
|
|
|
|
|
|
|
|
|
|
C2:void ShowLibBook(Book* book);\\查询图书馆藏书信息
|
|
|
|
|
|
|
|
|
|
C3:Book* AddBook(Book* book);\\存入新书
|
|
|
|
|
|
|
|
|
|
C4:Book* DealoldBook(Book* book);\\旧书处理
|
|
|
|
|
|
|
|
|
|
C5:void foundBook(Book* book);\\根据书名检索书刊信息
|
|
|
|
|
|
|
|
|
|
C6:void foundReader_Info(Reader* reader);\\查询读者的借阅信息
|
|
|
|
|
|
|
|
|
|
C7:void foundReaderInfo(Reader* reader);\\查询读者信息
|
|
|
|
|
|
|
|
|
|
C8:Reader* LendBook(Reader* reader, Book* book);\\读者借书
|
|
|
|
|
|
|
|
|
|
C9:void returnBook(Reader* reader, Book* book);\\读者还书
|
|
|
|
|
|
|
|
|
|
C10:void save(Book* book);\\文件保存
|
|
|
|
|
|
|
|
|
|
C11:Book* read1();\\从文件读取
|
|
|
|
|
|
|
|
|
|