From 0206e7273ea89279481f030688a933b3133ed80f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=89=BA=E5=93=B2?= <446062334@qq.com> Date: Thu, 27 Apr 2023 17:40:02 +0800 Subject: [PATCH] c10 --- README.md | 2 +- returnBook.svg | 234 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 235 insertions(+), 1 deletion(-) create mode 100644 returnBook.svg diff --git a/README.md b/README.md index 0d8bf6e..d3e59a2 100644 --- a/README.md +++ b/README.md @@ -700,7 +700,7 @@ C7:void foundReaderInfo(Reader* reader);\\查询读者信息 C8:Reader* LendBook(Reader* reader, Book* book);\\读者借书 ![888](LendBook.svg) C9:void returnBook(Reader* reader, Book* book);\\读者还书 - +![999](returnBook.svg) C10:void save(Book* book);\\文件保存 C11:Book* read1();\\从文件读取 diff --git a/returnBook.svg b/returnBook.svg new file mode 100644 index 0000000..694b1f2 --- /dev/null +++ b/returnBook.svg @@ -0,0 +1,234 @@ + + + + + + + + + + + + + + returnBook + (整数值 id) + + + + + + 结束 + + + + + + + + + + + + + + + + + + + + + + + 整数值 reader + + + + + + + + 整数值 id + + + + + + 输入 id + + + + + + + + getchar() + + + + + + + + + + + + + reader!=NULL + + + + + + + + + + + + + + + + + + id == reader->iNum + + + + + + + + + + + + + 整数值 id_book + + + + + + 输入 id_book + + + + + + + + + + + + + + + + + + reader->aiBookId[i] + + + + + + + + + + + book + + + + + + + + + + + + + + + + + + + + + + + i = 0 到 reader->iMax + + + + 下一个 + + + 完成 + + + + + + + + + + + + + + + + + reader != NULL + + + + + + + + + + + + + + + + + + + + + + + 输出 + + + + + + 输出 + + + + + + + + getchar() + + + + +