From 81f9f026d3b43517b67cce79351681355a2a777b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E4=BD=B3=E6=85=A7?= <1608111480@qq.com> Date: Sun, 21 May 2023 15:17:41 +0800 Subject: [PATCH] C6-C9lct --- LendBook.svg | 671 ++++++++++++++++++++++++++++++++++++++++++++ ReaderInfo.svg | 166 +++++++++++ foundbook.svg | 145 ++++++++++ foundreaderinfo.svg | 193 +++++++++++++ 4 files changed, 1175 insertions(+) create mode 100644 LendBook.svg create mode 100644 ReaderInfo.svg create mode 100644 foundbook.svg create mode 100644 foundreaderinfo.svg diff --git a/LendBook.svg b/LendBook.svg new file mode 100644 index 0000000..3c832b7 --- /dev/null +++ b/LendBook.svg @@ -0,0 +1,671 @@ + + + + + + + + + + + + + + LendBook + + + + + + End + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + String reader1 + + + + + + + + String book1 + + + + + + + + Integer id + + + + + + Input id + + + + + + Input reader + + + + + + + + + + + + + reader == NULL + + + + + + + + + + + + + Output Reader* tmp = + (Reader*)malloc(sizeof + (Reader)); + + + tmp->next = NULL + ; + + + tmp->iAmount = + 0; + + + tmp->iNum = id; + + + + + + Input 读者名字 + + + + + + Input 读者性别 + + + + + + Input 读者职位 + + + + + + + + True + + + False + + + + + + + + + + + + + + + strcmp(tmp->position, + "student"==0 + + + + + + Output iMax = + 20; + day = 30; + + + + + + Output tmp->iMax = + 40; + tmp->day = 60; + + + + + True + + + False + + + + + + + + + + + Output tmp->aiBookId[i] = 0 + + + + + + i = 0 to iMax + + + + Next + + + Done + + + + + + + + Integer idbook + + + + + + Input idbook + + + + + + Input book + + + + + + + + + + + + + + + + + + + + id_book == book->iNum + + + + + + + + + + + + + + + + book->iAmount <= 1 + + + + + + + + + Output + 借阅失败该图书库存不足 + + + + + + Output 返回NULL + + + + + + + + True + + + False + + + + + + + + + + + + + (tmp->iAmount) + 1 > tmp-> + iMax + + + + + + + + + Output + 借阅失败该读者借阅图书数量已达上线 + + + + + + Output 返回NULL + + + + + + + + True + + + False + + + + + + + + + + Output 借阅成功 + + + + + + Output 返回reader + + + + + + True + + + False + + + + + + book!=NULL + + + + True + + + False + + + + + + Output book = book->next + + + + + + Output 没有找到该书 + + + + + + Output 返回reader1 + + + + + + + + + + + + + + + reader!=NULL + + + + + + + + + + + + + + + + + + + + + + + + + + + + id == reader->iNum + + + + + + + + + + + Output 图使馆当前的书册籍 + + + + + + Input 要借的书的编号 + + + + + + + + + + + + + + + + + + id_book == book->iNum + + + + + + + + + + + + + + + + book->iAmount <= 1 + + + + + + + + + Output 借阅失败 + + + + + + Output returnreader1 + + + + + + + + True + + + False + + + + + + + + + + + + + (tmpp->iAmount + 1 > tmpp + ->iMax + + + + + + + + + Output 借阅失败, + 该读者借阅图书数量已达上线 + + + + + + Output 返回reader1 + + + + + + + + True + + + False + + + + + + + + True + + + False + + + + + + book!=NULL + + + + True + + + False + + + + + + + + + + + + Output reader->iAmount++ + + + + + + Output reader->aiBookId + [tmpp->iAmount] = id_book + + + + + + Output 返回reader1 + + + + + + True + + + False + + + + + + Output book = book->next + + + + + + + reader != NULL + + + + True + + + False + + + + + + Output 没有找到该书 + + + + + + Output 按任意键返回 + + + + + + + Output reader = reader-> + next + + + + + True + + + False + + + + + diff --git a/ReaderInfo.svg b/ReaderInfo.svg new file mode 100644 index 0000000..12e8d23 --- /dev/null +++ b/ReaderInfo.svg @@ -0,0 +1,166 @@ + + + + + + + + + + + + + + ReaderInfo + + + + + + End + + + + + + + + + + + + + + + + + + + + + String reader1 + + + + + + + + Integer id + + + + + + Input id + + + + + + Input reader1 + + + + + + + + + + + + + + + + + + + + id == reader->iNum + + + + + + + + + + + + + + + Output 读者id + + + + + + Output 读者姓名 + + + + + + Output 读者性别 + + + + + + Output 读者已借阅书的数量 + + + + + + Input reader + + + + + + + Output reader = reader-> + next + + + + + True + + + False + + + + + + reader + + + + True + + + False + + + + + + Output 没有找到该读者 + + + + + + Input reader + + + + + diff --git a/foundbook.svg b/foundbook.svg new file mode 100644 index 0000000..8a87361 --- /dev/null +++ b/foundbook.svg @@ -0,0 +1,145 @@ + + + + + + + + + + + + + + foundbook + + + + + + End + + + + + + + + + + + + + + + + + + + + + String book1 + + + + + + + + Integer id + + + + + + Input id + + + + + + Input book1 + + + + + + + + + + + + + + + + + + + + + id==book->iNum + + + + + + + + + Output 该书的信息 + + + + + + Input book + + + + + + + + True + + + False + + + + + + Output book=book->next + + + + + + + book!=NULL + + + + True + + + False + + + + + + Output 没有找到该书 + + + + + + Input 需要查找的下一本书 + + + + + diff --git a/foundreaderinfo.svg b/foundreaderinfo.svg new file mode 100644 index 0000000..9e34424 --- /dev/null +++ b/foundreaderinfo.svg @@ -0,0 +1,193 @@ + + + + + + + + + + + + + + foundreaderinfo + + + + + + End + + + + + + + + + + + + + + + + + + + + + String reader1 + + + + + + + + Integer id + + + + + + Input id + + + + + + Input reader + + + + + + + + + + + + + + + + + + + + id==reader->iNum + + + + + + + + + Output 读者借阅的编号 + + + + + + + + + + + + + + + + + + + + + reader->aiBookId[i] != 0 + + + + + + Output 读者的借阅编号 + + + + + + + True + + + False + + + + + + Input nextreader + + + + + + + i = 0 to reader->iMax + + + + Next + + + Done + + + + + + + Output reader = reader-> + next + + + + + True + + + False + + + + + + reader + + + + True + + + False + + + + + + Output 没有该读者 + + + + + + Input nextreader + + + + + -- 2.34.1