From 30ca3f46069fe6c9b6bcbf6b664e52e4d6f174bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=89=BA=E5=93=B2?= <446062334@qq.com> Date: Sun, 21 May 2023 15:54:51 +0800 Subject: [PATCH] return --- README.md | 2 +- images/returnBook.svg | 296 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 297 insertions(+), 1 deletion(-) create mode 100644 images/returnBook.svg diff --git a/README.md b/README.md index ebd2c50..b845ebf 100644 --- a/README.md +++ b/README.md @@ -416,7 +416,7 @@ C8:void foundReaderInfo(Reader* reader);\\查询读者信息 C9:Reader* LendBook(Reader* reader, Book* book);\\读者借书 ![C9](images/LendBook.svg) C10:void returnBook(Reader* reader, Book* book);\\读者还书 -![C10](images/returnBook-开始.svg) +![C10](images/returnBook.svg) C11:void save(Book* book);\\文件保存 C12:Book* read1();\\从文件读取 diff --git a/images/returnBook.svg b/images/returnBook.svg new file mode 100644 index 0000000..6256212 --- /dev/null +++ b/images/returnBook.svg @@ -0,0 +1,296 @@ + + + + + + + + + + + + + + 开始 + + + + + + 结束 + + + + + + + + + + + + + + + + + + + + + reader1 = Reader* reader + + + + + + book1 = Book* book + + + + + + 输入 id + + + + + + + + getchar() + + + + + + + + + + + + + reader!=NULL + + + + + + + + + + + + + + + + + + reader->iNum == id + + + + + + + + + + + + + + + 输入 idbook + + + + + + + + getchar() + + + + + + + + + + + + + + + + + + reader*aiBookId[i]==idbook + + + + + + + + + + + reader->aiBookId[i] = 0 + + + + + + + + + + + + + + + + + + id_book==book->iNum + + + + + + + + getchar() + + + + + + + + + + + + + + + + While循环 + + + + + + + + + + + + + book = book->next + + + + + + + + + + + + + + + + + i = 0 到 reader*iMax + + + + 下一个 + + + 完成 + + + + + + + + getchar() + + + + + + reader = reader->next + + + + + + + + + + + + + + + + + reader!=NULL + + + + + + + + + + + + + + + + + + + + + + + 输出 + + + + + + 输出 + + + + + + + + getchar() + + + + +