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() + + + + +