Compare commits

...

44 Commits

Author SHA1 Message Date
王昊 2191c6e697 2
2 years ago
mac76tib2 bc97f229ad Merge pull request '代码' (#17) from 代码 into master
2 years ago
王昊 9c4cf8f82a j
2 years ago
王昊 32e13f677a d
2 years ago
王昊 84cae3add4 f
2 years ago
孙艺哲 c903f0f79b 代码
2 years ago
张江楠 cf5739d1c0 Merge branch '流程图'
2 years ago
mac76tib2 82f2a72037 Merge pull request 'bookread' (#16) from bookread into master
2 years ago
mac76tib2 a36dd3ecc3 Merge pull request 'save' (#15) from save into master
2 years ago
mac76tib2 8edc26886e Merge pull request 'return' (#13) from return into master
2 years ago
孙艺哲 6327f1616b bookread
2 years ago
孙艺哲 4014066eed save
2 years ago
张江楠 da9cd31f0d liuchengtu
2 years ago
孙艺哲 30ca3f4606 return
2 years ago
mac76tib2 ff81767bc3 Merge pull request 'return' (#12) from C12 into master
2 years ago
孙艺哲 b1b5b7c491 returnbook
2 years ago
mac76tib2 cc9c382ce5 Merge pull request '2' (#11) from C6-C9lct into master
2 years ago
郭佳慧 5928591c34 1234
2 years ago
张江楠 e8fd1ceb58 Merge branch 'master' of https://bdgit.educoder.net/mac76tib2/libray
2 years ago
张江楠 e358e1afe3 d
2 years ago
郭佳慧 b3d9852e36 6789
2 years ago
mac76tib2 b2dde7601a Merge pull request 'C6-C9' (#10) from C6-C9lct into master
2 years ago
郭佳慧 81f9f026d3 C6-C9lct
2 years ago
王昊 2188b48ae9 1
2 years ago
王昊 981ddd5225 wan
2 years ago
王昊 cc1e4b0b83 Merge branch 'c1'
2 years ago
王昊 cb38b93061 报告模板和c1流程图
2 years ago
mac76tib2 772293d0bf Merge pull request '6-9' (#9) from 6-9 into master
2 years ago
王昊 3a7aa7daa1 Merge branch 'c1'
2 years ago
王昊 0ccba473b4 C1 流程图
2 years ago
王昊 f1a490517a 主流程图
2 years ago
王昊 e42d2cb82b 头文件
2 years ago
郭佳慧 56cd9be7c0 6-9
2 years ago
mac76tib2 f59ac84804 Merge pull request '11-12' (#8) from gggg into master
2 years ago
mac76tib2 b438b604b3 Merge pull request 'C5' (#7) from C5 into master
2 years ago
mac76tib2 9d8479d66b Merge pull request 'C4' (#6) from C4 into master
2 years ago
mac76tib2 efe8272ee1 Merge pull request 'C3' (#5) from C3 into master
2 years ago
mac76tib2 9b10a9faf3 Merge pull request 'C2' (#4) from C2-查询图书馆信息模块 into master
2 years ago
孙艺哲 f4ef1ee251 c11-c12
2 years ago
张江楠 7e8d742ebe C5
2 years ago
张江楠 80953ed0ec C4
2 years ago
mac76tib2 ceacbf43bf Merge pull request 'c10' (#3) from C10 into master
2 years ago
张江楠 0200c94d16 C3
2 years ago
孙艺哲 1c63c90e2a vvv
2 years ago

@ -1,2 +1,650 @@
# test2
# 图书管理系统
2023年5月21日
成员1王昊 成员2孙艺哲 成员3张江楠 成员4郭佳慧
## 项目简介
本系统是程序设计与问题求解课程设计项目,实现了图书管理 CSV 格式数据文件的读取和保存以及数据的增删改查CRUD等功能。项目采用 C 语言编程实现,在 VS Code 集成开发环境IDE中用 GCC 进行编译。系统采用模块化设计,程序结构清晰,采用菜单驱动的命令行界面,操作便捷,能够用 CSV 格式读取和保存数据,通用性强,能够用图表展示数据,直观清楚。
下载地址https://bdgit.educoder.net/mac76tib2/libray.git
项目开发过程中采用 Kanban看板进行任务管理和分工协作并使用 Git 对程序代码和文档进行版本管理。任务分工情况如下:
| 任务 | 设计 | 开发 | 测试 | 文档 |
|------|-----|------|------|-----|
| C1 | 王昊 | 王昊 | 张江楠 | 郭佳慧 |
| C2·C3·C4·C5 | 张江楠 | 张江楠 | 郭佳慧 | 孙艺哲 |
| C6·C7·C8·C9 | 郭佳慧 | 郭佳慧 | 孙艺哲 | 王昊 |
| C10·C11·C12 | 孙艺哲 | 孙艺哲 | 王昊 | 张江楠 |
每个成员工作量(百分比):
| 王昊 | 张江楠 | 郭佳慧 | 孙艺哲 |
|----|---|----|----|
| 25 | 25 | 25 | 25 |
## 关于图书管理系统
建立一个图书馆管理系统,可以处理以下对象:
1图书馆基本信息
2图书馆的书籍
3图书馆管理员
4读者信息
### 需求分析
1查询图书馆的总信息
2查询图书馆藏书信息
3存入新书
4旧书处理
5根据书名检索书刊信息
6查询读者的借阅信息
7查询读者信息
8读者借书
9读者还书
10文件保存
11从文件读取
## C1函数模块
1.函数原形int main();
2.功能调用ShowMainMenu()函数,显示主界面
```
void ShowMainMenu()
{
system("cls");
printf("\n\n\n\n\n");
printf("\t|----------------------欢迎进入---------------------------\n");
printf("\t| 读者管理系统 \n");
printf("\t| 1、查询图书馆的总信息 \n");
printf("\t| 2、查询图书馆藏书信息 \n");
printf("\t| 3、存入新书 \n");
printf("\t| 4、旧书处理 \n");
printf("\t| 5、根据书名检索书刊信息 \n");
printf("\t| 6、查询读者的借阅信息 \n");
printf("\t| 7、查询读者信息 \n");
printf("\t| 8、读者借书 \n");
printf("\t| 9、读者还书 \n");
printf("\t| 10、文件保存 \n");
printf("\t| 11、从文件读取 \n");
printf("\t| 0、退出 \n");
printf("\t|---------------------------------------------------------\n");
printf("新打开程序需先添加管理员\n");
printf("\n");
printf("\t\t请选择0-11");
}
```
## C2查询图书馆信息模块
函数原形void ShowLibInfo(const Book* book, const Reader* reader);
功能:接受两个形参,分别是图书的链表地址,读者的链表地址,并遍历两个链表,显示出图书的数量和读者的数量
```
void ShowLibInfo(const Book* book1, const Reader* reader1)
{
Book* book = book1;
Reader* reader = reader1;
int bookNUm = 0, readerNUm = 0, mangerNUm = 0;
while (book != NULL)
{
bookNUm++;
book = book->next;
}
while (reader != NULL)
{
readerNUm++;
reader = reader->next;
}
printf("本图书馆共有藏书%d本,读者%d人\n", bookNUm, readerNUm);
printf("按任意键返回\n");
getchar();
return;
}
```
## C3查找图书馆藏书信息模块
1) 函数原形: void ShowLibBook(Book* book);
2) 功能: 接受一个形参:图书的链表地址,遍历该链表,显示出所有图书的信息
```
void ShowLibBook(Book* book1)
{
Book* book = book1;
while (book != NULL)
{ // \t :制表符
printf("%d\t%s\t%s\t%s\t%d\n", book->iNum, book->acName, book->acAuthor, book->acPress, book->iAmount);
book = book->next;
}
printf("\n按任意键返回\n");
getchar();
return;
}
```
## C4存入新书信息模块
1) 函数原形: Book* AddBook(Book* book);
2) 功能: 接受一个形参:图书的链表地址,利用尾插对链表进行修改,添加图书
```
Book* AddBook(Book* book1)
{
Book* book = book1;
if (book == NULL)
{
Book* tmp = (Book*)malloc(sizeof(Book));
tmp->next = NULL;
assert(tmp);
printf("输入书的编号:");
scanf("%d", &tmp->iNum);
getchar();
printf("输入书的名称:");
gets(&tmp->acName);
printf("输入书的作者:");
gets(tmp->acAuthor);
printf("输入书的出版社:");
gets(tmp->acPress);
printf("输入书的库存量:");
scanf("%d", &tmp->iAmount);
book = tmp;
printf("按任意键返回\n");
getchar();
return book;
return;
}
while (1)
{
while (book->next == NULL)
{
int flag = 1;
while (flag)
{
Book* tmp = (Book*)malloc(sizeof(Book));
tmp->next = NULL;
assert(tmp);
printf("输入书的编号:");
scanf("%d", &tmp->iNum);
getchar();
printf("输入书的名称:");
gets(&tmp->acName);
printf("输入书的作者:");
gets(tmp->acAuthor);
printf("输入书的出版社:");
gets(tmp->acPress);
printf("输入书的库存量:");
scanf("%d", &tmp->iAmount);
book->next = tmp;
printf("是否继续输入:1==>继续\t0==>结束\t");
scanf("%d", &flag);
getchar();
if (flag == 0)
{
printf("按任意键返回\n");
getchar();
return book1;
}
}
}
book = book->next;
}
printf("按任意键返回\n");
getchar();
return;
}
```
## C5:旧书处理信息模块
1函数原形: Book* DealoldBook(Book* book);
2) 功能: 接受一个形参:图书链表的地址,遍历该链表,用书的编号进行匹配,找到该图书后删除该图书,否则返回
```
Book* DealoldBook(Book* book1)
{
Book* book = book1;
Book* prev = book1;
printf("输入要处理旧书的编号:");
int id;
scanf("%d", &id);
getchar();
while (book != NULL)
{
if (id == book->iNum)
{
if (book1 == book)
{
book = book->next;
free(prev);
return book;
}
prev->next = book->next;
free(book); // free():释放资源
printf("已将旧书处理掉!\n");
printf("按任意键返回\n");
getchar();
return book1;
}
prev = book;
book = book->next;
}
printf("没有找到该图书\n");
printf("按任意键返回\n");
getchar();
return book1;
}
```
## C6:查找图书信息模块
1函数原形: void foundBook(Book* book);
2) 功能:接受一个形参:图书链表的地址,遍历该链表,用书的编号进行匹配,找到该图书后显示该图书,否则返回
```
void foundBook(Book* book1)
{
Book* book = book1;
printf("输入要查找的书的id:");
int id;
scanf("%d", &id);
getchar();
while (book != NULL)
{
if (id == book->iNum)
{
printf("该书的信息如下:\n");
printf("%d\t%s\t%s\t%s\t%d\n", book->iNum, book->acName, book->acAuthor, book->acPress, book->iAmount);
printf("按任意键返回\n");
getchar();
return;
}
book = book->next;
}
printf("没有找到该书!\n");
printf("按任意键返回\n");
getchar();
return;
}
```
## C7:查询读者借阅信息模块
1函数原形: void foundReader_Info(Reader* reader);
2) 功能: 接受一个形参:读者链表的地址,遍历该链表,用读者的编号进行匹配,找到该读者显示该读者的信息,否则返回
```
void foundReader_Info(Reader* reader1)
{
Reader* reader = reader1; //备份
printf("输入读者的id:");
int id;
scanf("%d", &id);
getchar();
while (reader)
{
if (id == reader->iNum)
{
printf("借阅的书的编号如下:\n");
for (int i = 0; i < reader->iMax; i++) //根据读者可以借阅的数量作为循环终止条件
{
if (reader->aiBookId[i] != 0) //数组里不为0证明有一条记录因为数组初始化为0并且书的编号不可能为0
{
printf("%d\n", reader->aiBookId[i]);
}
}
printf("按任意键返回\n");
getchar();
return;
}
reader = reader->next;
}
printf("没有该读者!\n");
printf("按任意键返回\n");
getchar();
return;
}
```
## C8:查询读者借书模块
1函数原形: void foundReaderInfo(Reader* reader);
2功能: 接受一个形参:读者链表的地址,遍历该链表,用读者的编号进行匹配,找到该读者显示该读者的借阅信息,否则返回
```
void foundReaderInfo(Reader* reader1)
{
Reader* reader = reader1;
printf("输入读者的id:");
int id;
scanf("%d", &id);
getchar();
while (reader)
{
if (id == reader->iNum)
{
printf("读者id:%d\n", reader->iNum);
printf("读者姓名:%s\n", reader->acName);
printf("读者性别:%s\n", reader->acSex);
printf("读者职位:%s\n", reader->position);
printf("读者已借阅书的数量:%d\n", reader->iAmount);
printf("按任意键返回\n");
getchar();
return;
}
reader = reader->next;
}
printf("没有找到该读者\n");
printf("按任意键返回\n");
getchar();
return;
}
```
## C9:读者借书模块
1)函数原形: Reader* LendBook(Reader* reader, Book* book);
2)功能:接受两个形参:读者链表地址和图书链表地址,用读者的编号进行匹配,找到该读者后,用图书的编号进行匹配,进行借书,否则返回
```
Reader* LendBook(Reader* reader1, Book* book1)
{
Reader* reader = reader1;
Book* book = book1;
Reader* prev = reader1;
Reader* tmpp = reader1;
printf("输入读者id:");
int id;
scanf("%d", &id);
getchar();
if (reader == NULL)
{
Reader* tmp = (Reader*)malloc(sizeof(Reader));
tmp->next = NULL;
tmp->iAmount = 0;
tmp->iNum = id;
printf("输入读者名字:");
scanf("%s", &tmp->acName);
getchar();
printf("输入读者性别:");
scanf("%s", &tmp->acSex);
getchar();
printf("输入读者职位:<student\tor\tteacher>");
scanf("%s", &tmp->position);
getchar();
if (strcmp(tmp->position, "student") == 0)
{
tmp->iMax = 20;
tmp->day = 30;
}
else {
tmp->iMax = 40;
tmp->day = 60;
}
for (int i = 0; i < tmp->iMax; i++)
{
tmp->aiBookId[i] = 0;
}
printf("输入要借的书的编号:");
int id_book;
scanf("%d", &id_book);
getchar();
while (book != NULL)
{
if (id_book == book->iNum)
{
if (book->iAmount <= 1)
{
printf("借阅失败,该图书库存不足.\n");
printf("按任意键返回\n");
getchar();
return NULL;
}
if ((tmp->iAmount) + 1 > tmp->iMax)
{
printf("借阅失败,该读者借阅图书数量已达上线.\n");
printf("按任意键返回\n");
getchar();
return NULL;
}
book->iAmount--;
tmp->aiBookId[tmp->iAmount] = id_book;
tmp->iAmount;
reader = tmp;
printf("借阅成功!\n");
printf("按任意键返回\n");
getchar();
return reader;
}
book = book->next;
}
printf("没有找到该书!\n");
printf("按任意键返回\n");
getchar();
return reader1;
}
if (reader != NULL)
{
while (reader != NULL)
{
if (id == reader->iNum)
{
printf("图使馆当前的书籍册:\n");
ShowLibBook(book);
printf("输入要借的书的编号:");
int id_book;
scanf("%d", &id_book);
getchar();
while (book != NULL)
{
if (id_book == book->iNum)
{
if (book->iAmount <= 1)
{
printf("借阅失败,该图书库存不足.\n");
printf("按任意键返回\n");
getchar();
return reader1;
}
if (tmpp->iAmount + 1 > tmpp->iMax)
{
printf("借阅失败,该读者借阅图书数量已达上线.\n");
printf("按任意键返回\n");
getchar();
return reader1;
}
reader->iAmount++;
reader->aiBookId[tmpp->iAmount] = id_book;
return reader1;
}
book = book->next;
}
printf("没有找到该书!\n");
printf("按任意键返回\n");
}
reader = reader->next;
}
}
}
```
## C10:读者还书模块
函数原形void returnBook(Reader* reader, Book* book);
功能:接受两个形参:读者链表地址和图书链表地址,用读者的编号进行匹配,找到该读者后,用图书的编号进行匹配,进行还书,否则返回
```
void returnBook(Reader* reader1, Book* book1)
{
Reader* reader = reader1;
Book* book = book1;
printf("请输入读者的id:");
int id;
scanf("%d", &id);
getchar();
if (reader != NULL)
{
while (reader != NULL)
{
if (id == reader->iNum)
{
printf("请输入要还的书的编号:");
int id_book;
scanf("%d", &id_book);
getchar();
for (int i = 0; i < reader->iMax; i++)
{
if (reader->aiBookId[i] == id_book)
{
reader->aiBookId[i] = 0;
while (book)
{
if (id_book == book->iNum)
{
book->iAmount++;
printf("还书成功!\n");
printf("按任意键返回\n");
getchar();
return reader1;
}
book = book->next;
}
}
}
printf("没有找到该图书检查图书的Id\n");
printf("按任意键返回\n");
getchar();
return reader1;
}
reader = reader->next;
}
printf("没有找到该读者检查读者id是否输入有误\n");
printf("按任意键返回\n");
getchar();
return reader1;
}
}
```
## C11:保存信息模块
1函数原形: void save(Book* book);
2) 功能接受一个形参book的链表地址新建一个文件将链表中的信息保存到硬盘中
```
void save(Book* book1)
{
FILE* fp;
Book* pCur = book1;
int iCount = 0;
if (pCur == NULL)
{
printf("\n没有学生记录!\n");
return;
}
if ((fp = fopen("book.txt", "wb")) == NULL)
{
printf("创建文件失败!\n");
getchar();
exit(1);
}
while (pCur)
{
fwrite(pCur, sizeof(Book), 1, fp);
pCur = pCur->next;
iCount++;
}
printf("\n");
printf("保存文件的数据数目为:%d\n", iCount);
fclose(fp);
}
```
## C12:读取信息模块
1函数原形: Book* read1();
2) 功能打开一个文件将文件中的信息读取到内存中并返回一个Book类型的指针
```
Book* read1()
{
FILE* fp;
Book* pHead = NULL, * pTemp = NULL, * pCur = NULL;
if ((fp = fopen("book.txt", "r")) == NULL)
{
printf("\n文件打开失败!请检查文件名!\n");
exit(0);
}
pTemp = (Book*)malloc(sizeof(Book));
while (fread(pTemp, sizeof(Book), 1, fp))
{
if (!pHead)
{
pHead = pCur = pTemp;
}
else
{
pCur->next = pTemp;
pCur = pTemp;
}
pTemp = (Book*)malloc(sizeof(Book));
}
fclose(fp);
return pHead;
}
```
## 概要设计
系统主要为开始界面和数据处理两大模块
开始界面即显示主要功能
数据处理包括:
查询图书馆的总信息
查询图书馆藏书信息
存入新书
旧书处理
根据书名检索书刊信息
查询读者的借阅信息
查询读者信息
读者借书
读者还书
文件保存
从文件读取
上述各模块通过主程序main进行调用系统模块图如下:
![](images/text.drawio.svg)
## 详细设计
针对概要设计
C2:void ShowLibInfo(const Book* book, const Reader* reader);\\查询图书馆的总信息
![C2](images/c2.svg)
C3:void ShowLibBook(Book* book);\\查询图书馆藏书信息
![c3](images/c3.svg)
C4:Book* AddBook(Book* book);\\存入新书
![c4](images/c4.svg)
C5:Book* DealoldBook(Book* book);\\旧书处理
![c5](images/c5.svg)
C6:void foundBook(Book* book);\\根据书名检索书刊信息
![C6](images/foundbook.svg)
C7:void foundReader_Info(Reader* reader);\\查询读者的借阅信息
![C7](images/foundreaderinfo.svg)
C8:void foundReaderInfo(Reader* reader);\\查询读者信息
![C8](images/ReaderInfo.svg)
C9:Reader* LendBook(Reader* reader, Book* book);\\读者借书
![C9](images/LendBook.svg)
C10:void returnBook(Reader* reader, Book* book);\\读者还书
![C10](images/returnBook.svg)
C11:void save(Book* book);\\文件保存
![C11](images/save.svg)
C12:Book* read1();\\从文件读取
![C12](images/Bookread.svg)

@ -0,0 +1,184 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="2556" height="4860">
<rect x="0" y="0" width="2556" height="4860" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,288 756,375"/>
<polygon fill="#404040" stroke="none" points="756,396 776,361 735,361"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,4464 756,4551"/>
<polygon fill="#404040" stroke="none" points="756,4572 776,4537 735,4537"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 612,144 A 72 72, 0, 0 0, 612 288 L 900,288 A 72 72, 0, 0 0, 900 144 Z"/>
<text x="756" y="165" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">Bookread</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 612,4572 A 72 72, 0, 0 0, 612 4716 L 900,4716 A 72 72, 0, 0 0, 900 4572 Z"/>
<text x="756" y="4593" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">&#32467;&#26463;</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,540 756,627"/>
<polygon fill="#404040" stroke="none" points="756,648 776,613 735,613"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,792 756,879"/>
<polygon fill="#404040" stroke="none" points="756,900 776,865 735,865"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,1044 756,1131"/>
<polygon fill="#404040" stroke="none" points="756,1152 776,1117 735,1117"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,1296 756,1383"/>
<polygon fill="#404040" stroke="none" points="756,1404 776,1369 735,1369"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,2484 756,2571"/>
<polygon fill="#404040" stroke="none" points="756,2592 776,2557 735,2557"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,2808 756,2895"/>
<polygon fill="#404040" stroke="none" points="756,2916 776,2881 735,2881"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,3132 756,4299"/>
<polygon fill="#404040" stroke="none" points="756,4320 776,4285 735,4285"/>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="5" stroke-dasharray="none" d="M 576,396 A 36 72, 0, 0 0, 576 540 L 972,540 A 36 72, 0, 0 1, 972 396 Z"/>
<text x="756" y="417" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">&#38405;&#35835;FILE</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 396,648 L 396,792 L 1116,792 L 1116,648 Z"/>
<text x="756" y="669" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">Book pHead = NULL</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 468,900 L 468,1044 L 1044,1044 L 1044,900 Z"/>
<text x="756" y="921" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">* pTemp = NULL</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 468,1152 L 468,1296 L 1044,1296 L 1044,1152 Z"/>
<text x="756" y="1173" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">*pTemp = NULL</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1152,1620 1332,1620 1332,1887"/>
<polygon fill="#404040" stroke="none" points="1332,1908 1352,1873 1311,1873"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1332,2304 1332,2448 812,2448"/>
<polygon fill="#404040" stroke="none" points="792,2448 826,2468 826,2427"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="360,1620 180,1620 180,2448 699,2448"/>
<polygon fill="#404040" stroke="none" points="720,2448 685,2427 685,2468"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="5" stroke-dasharray="none" d="M 756,1404 L 324,1620 L 756,1836 L 1188,1620 Z"/>
<text x="756" y="1569" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">fp = fopen() == NULL</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1332,2052 1332,2139"/>
<polygon fill="#404040" stroke="none" points="1332,2160 1352,2125 1311,2125"/>
<g>
<path fill="#E0E0E0" stroke="#505050" stroke-width="5" stroke-dasharray="none" d="M 1188,1908 L 1116,2052 L 1476,2052 L 1548,1908 Z"/>
<text x="1332" y="1929" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1332" dy="72" unicode-bidi="embed">&#36755;&#20986;</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 1116,2160 L 1116,2304 L 1548,2304 L 1548,2160 Z"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="1152,2160 1152,2304"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="1512,2160 1512,2304"/>
<text x="1332" y="2181" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1332" dy="72" unicode-bidi="embed">exit()</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="756" cy="2448" rx="36" ry="36" fill="#FFD0D0" stroke="#A07070" stroke-width="5"/>
<text x="1260" y="1497" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1260" dy="72" unicode-bidi="embed">&#30495;</tspan>
</text>
<text x="252" y="1497" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="252" dy="72" unicode-bidi="embed">&#20551;</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 360,2592 L 360,2808 L 1152,2808 L 1152,2592 Z"/>
<text x="756" y="2613" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">pTemp = (Book*)malloc</tspan>
<tspan x="756" dy="72" unicode-bidi="embed">(sizeof(Book))</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1188,3024 1800,3024 1800,3183"/>
<polygon fill="#404040" stroke="none" points="1800,3204 1820,3169 1779,3169"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1800,4068 1800,4176 828,4176 828,3152"/>
<polygon fill="#404040" stroke="none" points="828,3132 807,3166 848,3166"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1980,3312 2160,3312 2160,3471"/>
<polygon fill="#404040" stroke="none" points="2160,3492 2180,3457 2139,3457"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2160,3636 2160,4032 1856,4032"/>
<polygon fill="#404040" stroke="none" points="1836,4032 1870,4052 1870,4011"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1620,3312 1368,3312 1368,3471"/>
<polygon fill="#404040" stroke="none" points="1368,3492 1388,3457 1347,3457"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1368,3888 1368,4032 1743,4032"/>
<polygon fill="#404040" stroke="none" points="1764,4032 1729,4011 1729,4052"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="5" stroke-dasharray="none" d="M 1800,3204 L 1584,3312 L 1800,3420 L 2016,3312 Z"/>
<text x="1800" y="3261" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1800" dy="72" unicode-bidi="embed">!pHead</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" d="M 1908,3492 L 1908,3636 L 2412,3636 L 2412,3492 Z"/>
<text x="2160" y="3513" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2160" dy="72" unicode-bidi="embed">pHead = pCur</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1368,3636 1368,3723"/>
<polygon fill="#404040" stroke="none" points="1368,3744 1388,3709 1347,3709"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 1008,3492 L 1008,3636 L 1728,3636 L 1728,3492 Z"/>
<text x="1368" y="3513" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1368" dy="72" unicode-bidi="embed">pCur-&gt;next = pTemp</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" d="M 1116,3744 L 1116,3888 L 1620,3888 L 1620,3744 Z"/>
<text x="1368" y="3765" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1368" dy="72" unicode-bidi="embed">pCur = pTemp</tspan>
</text>
</g>
</g>
<ellipse cx="1800" cy="4032" rx="36" ry="36" fill="#FFD0D0" stroke="#A07070" stroke-width="5"/>
<text x="2088" y="3189" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2088" dy="72" unicode-bidi="embed">&#30495;</tspan>
</text>
<text x="1512" y="3189" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1512" dy="72" unicode-bidi="embed">&#20551;</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="5" stroke-dasharray="none" d="M 432,2916 L 324,3024 L 432,3132 L 1080,3132 L 1188,3024 L 1080,2916 Z"/>
<text x="756" y="2937" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">fread(pTemp, sizeof</tspan>
<tspan x="756" dy="72" unicode-bidi="embed">(Book),1,fp)</tspan>
</text>
</g>
<text x="1260" y="2901" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1260" dy="72" unicode-bidi="embed">&#30495;</tspan>
</text>
<text x="684" y="3153" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="684" dy="72" unicode-bidi="embed">&#20551;</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 540,4320 L 540,4464 L 972,4464 L 972,4320 Z"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="576,4320 576,4464"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="936,4320 936,4464"/>
<text x="756" y="4341" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">fclose(fp)</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 12 KiB

@ -0,0 +1,671 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="9984" height="24816">
<rect x="0" y="0" width="9984" height="24816" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,384 1872,501"/>
<polygon fill="#404040" stroke="none" points="1872,528 1898,481 1845,481"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,24288 1872,24405"/>
<polygon fill="#404040" stroke="none" points="1872,24432 1898,24385 1845,24385"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="6" stroke-dasharray="none" d="M 1632,192 A 96 96, 0, 0 0, 1632 384 L 2112,384 A 96 96, 0, 0 0, 2112 192 Z"/>
<text x="1872" y="220" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">LendBook</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="6" stroke-dasharray="none" d="M 1680,24432 A 96 96, 0, 0 0, 1680 24624 L 2064,24624 A 96 96, 0, 0 0, 2064 24432 Z"/>
<text x="1872" y="24460" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">End</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,768 1872,885"/>
<polygon fill="#404040" stroke="none" points="1872,912 1898,865 1845,865"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,1152 1872,1269"/>
<polygon fill="#404040" stroke="none" points="1872,1296 1898,1249 1845,1249"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,1536 1872,1653"/>
<polygon fill="#404040" stroke="none" points="1872,1680 1898,1633 1845,1633"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,1872 1872,1989"/>
<polygon fill="#404040" stroke="none" points="1872,2016 1898,1969 1845,1969"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,2208 1872,2325"/>
<polygon fill="#404040" stroke="none" points="1872,2352 1898,2305 1845,2305"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,5616 1872,5733"/>
<polygon fill="#404040" stroke="none" points="1872,5760 1898,5713 1845,5713"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,7152 1872,7317"/>
<polygon fill="#404040" stroke="none" points="1872,7344 1898,7297 1845,7297"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,7536 1872,8133"/>
<polygon fill="#404040" stroke="none" points="1872,8160 1898,8113 1845,8113"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,8400 1872,8517"/>
<polygon fill="#404040" stroke="none" points="1872,8544 1898,8497 1845,8497"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,8736 1872,8853"/>
<polygon fill="#404040" stroke="none" points="1872,8880 1898,8833 1845,8833"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,9072 1872,9237"/>
<polygon fill="#404040" stroke="none" points="1872,9264 1898,9217 1845,9217"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,9456 1872,14373"/>
<polygon fill="#404040" stroke="none" points="1872,14400 1898,14353 1845,14353"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,14592 1872,14709"/>
<polygon fill="#404040" stroke="none" points="1872,14736 1898,14689 1845,14689"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,14928 1872,15045"/>
<polygon fill="#404040" stroke="none" points="1872,15072 1898,15025 1845,15025"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,15264 1872,15381"/>
<polygon fill="#404040" stroke="none" points="1872,15408 1898,15361 1845,15361"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" d="M 1488,528 L 1488,768 L 2256,768 L 2256,528 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="1488,576 2256,576"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="1536,528 1536,768"/>
<text x="1896" y="604" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1896" dy="96" unicode-bidi="embed">String reader1</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" d="M 1536,912 L 1536,1152 L 2208,1152 L 2208,912 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="1536,960 2208,960"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="1584,912 1584,1152"/>
<text x="1896" y="988" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1896" dy="96" unicode-bidi="embed">String book1</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" d="M 1584,1296 L 1584,1536 L 2160,1536 L 2160,1296 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="1584,1344 2160,1344"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="1632,1296 1632,1536"/>
<text x="1896" y="1372" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1896" dy="96" unicode-bidi="embed">Integer id</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 1680,1680 L 1584,1872 L 2064,1872 L 2160,1680 Z"/>
<text x="1872" y="1708" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">Input id</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 1584,2016 L 1488,2208 L 2160,2208 L 2256,2016 Z"/>
<text x="1872" y="2044" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">Input reader</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2304,2592 3216,2592 3216,2901"/>
<polygon fill="#404040" stroke="none" points="3216,2928 3242,2881 3189,2881"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3216,5376 3216,5568 1946,5568"/>
<polygon fill="#404040" stroke="none" points="1920,5568 1966,5594 1966,5541"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1440,2592 1056,2592 1056,5568 1797,5568"/>
<polygon fill="#404040" stroke="none" points="1824,5568 1777,5541 1777,5594"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="6" stroke-dasharray="none" d="M 1872,2352 L 1392,2592 L 1872,2832 L 2352,2592 Z"/>
<text x="1872" y="2524" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">reader == NULL</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3216,4368 3216,4485"/>
<polygon fill="#404040" stroke="none" points="3216,4512 3242,4465 3189,4465"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3216,4704 3216,4821"/>
<polygon fill="#404040" stroke="none" points="3216,4848 3242,4801 3189,4801"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3216,5040 3216,5157"/>
<polygon fill="#404040" stroke="none" points="3216,5184 3242,5137 3189,5137"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 2688,2928 L 1968,4368 L 3744,4368 L 4464,2928 Z"/>
<text x="3216" y="2956" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3216" dy="96" unicode-bidi="embed">Output Reader* tmp =</tspan>
<tspan x="3216" dy="96" unicode-bidi="embed"> (Reader*)malloc(sizeof</tspan>
<tspan x="3216" dy="96" unicode-bidi="embed">(Reader));</tspan>
<tspan x="3216" dy="96" unicode-bidi="embed"></tspan>
<tspan x="3216" dy="96" unicode-bidi="embed"> &#13;</tspan>
<tspan x="3216" dy="96" unicode-bidi="embed"> tmp-&gt;next = NULL</tspan>
<tspan x="3216" dy="96" unicode-bidi="embed">;</tspan>
<tspan x="3216" dy="96" unicode-bidi="embed"></tspan>
<tspan x="3216" dy="96" unicode-bidi="embed"> &#13;</tspan>
<tspan x="3216" dy="96" unicode-bidi="embed"> tmp-&gt;iAmount =</tspan>
<tspan x="3216" dy="96" unicode-bidi="embed"> 0;</tspan>
<tspan x="3216" dy="96" unicode-bidi="embed"></tspan>
<tspan x="3216" dy="96" unicode-bidi="embed">&#13;</tspan>
<tspan x="3216" dy="96" unicode-bidi="embed"> tmp-&gt;iNum = id;</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 2880,4512 L 2784,4704 L 3552,4704 L 3648,4512 Z"/>
<text x="3216" y="4540" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3216" dy="96" unicode-bidi="embed">Input &#35835;&#32773;&#21517;&#23383;</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 2880,4848 L 2784,5040 L 3552,5040 L 3648,4848 Z"/>
<text x="3216" y="4876" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3216" dy="96" unicode-bidi="embed">Input &#35835;&#32773;&#24615;&#21035;</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 2880,5184 L 2784,5376 L 3552,5376 L 3648,5184 Z"/>
<text x="3216" y="5212" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3216" dy="96" unicode-bidi="embed">Input &#35835;&#32773;&#32844;&#20301;</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="1872" cy="5568" rx="48" ry="48" fill="#FFD0D0" stroke="#A07070" stroke-width="6"/>
<text x="2496" y="2428" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2496" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="1224" y="2428" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1224" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2496,6096 2832,6096 2832,6501"/>
<polygon fill="#404040" stroke="none" points="2832,6528 2858,6481 2805,6481"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2832,6912 2832,7104 1946,7104"/>
<polygon fill="#404040" stroke="none" points="1920,7104 1966,7130 1966,7077"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1248,6096 864,6096 864,6501"/>
<polygon fill="#404040" stroke="none" points="864,6528 890,6481 837,6481"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="864,6912 864,7104 1797,7104"/>
<polygon fill="#404040" stroke="none" points="1824,7104 1777,7077 1777,7130"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 1872,5760 L 1200,6096 L 1872,6432 L 2544,6096 Z"/>
<text x="1872" y="5980" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">strcmp(tmp-&gt;position,</tspan>
<tspan x="1872" dy="96" unicode-bidi="embed"> &quot;student&quot;==0</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 2496,6528 L 2304,6912 L 3168,6912 L 3360,6528 Z"/>
<text x="2832" y="6556" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2832" dy="96" unicode-bidi="embed">Output iMax =</tspan>
<tspan x="2832" dy="96" unicode-bidi="embed"> 20;</tspan>
<tspan x="2832" dy="96" unicode-bidi="embed">day = 30;</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 432,6528 L 240,6912 L 1296,6912 L 1488,6528 Z"/>
<text x="864" y="6556" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="864" dy="96" unicode-bidi="embed">Output tmp-&gt;iMax =</tspan>
<tspan x="864" dy="96" unicode-bidi="embed"> 40;</tspan>
<tspan x="864" dy="96" unicode-bidi="embed"> tmp-&gt;day = 60;</tspan>
</text>
</g>
<ellipse cx="1872" cy="7104" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="2688" y="5932" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2688" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="1032" y="5932" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1032" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2256,7440 2880,7440 2880,7605"/>
<polygon fill="#404040" stroke="none" points="2880,7632 2906,7585 2853,7585"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2880,7824 2880,7968 1968,7968 1968,7562"/>
<polygon fill="#404040" stroke="none" points="1968,7536 1941,7582 1994,7582"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 2256,7632 L 2160,7824 L 3504,7824 L 3600,7632 Z"/>
<text x="2880" y="7660" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2880" dy="96" unicode-bidi="embed">Output tmp-&gt;aiBookId[i] = 0</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="6" stroke-dasharray="none" d="M 1584,7344 L 1488,7440 L 1584,7536 L 2160,7536 L 2256,7440 L 2160,7344 Z"/>
<text x="1872" y="7372" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">i = 0 to iMax</tspan>
</text>
</g>
<text x="2400" y="7276" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2400" dy="96" unicode-bidi="embed">Next</tspan>
</text>
<text x="1704" y="7564" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1704" dy="96" unicode-bidi="embed">Done</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" d="M 1488,8160 L 1488,8400 L 2256,8400 L 2256,8160 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="1488,8208 2256,8208"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="1536,8160 1536,8400"/>
<text x="1896" y="8236" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1896" dy="96" unicode-bidi="embed">Integer idbook</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 1584,8544 L 1488,8736 L 2160,8736 L 2256,8544 Z"/>
<text x="1872" y="8572" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">Input idbook</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 1584,8880 L 1488,9072 L 2160,9072 L 2256,8880 Z"/>
<text x="1872" y="8908" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">Input book</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2304,9360 3696,9360 3696,9525"/>
<polygon fill="#404040" stroke="none" points="3696,9552 3722,9505 3669,9505"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3696,14064 3696,14208 1968,14208 1968,9482"/>
<polygon fill="#404040" stroke="none" points="1968,9456 1941,9502 1994,9502"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4272,9888 4992,9888 4992,10293"/>
<polygon fill="#404040" stroke="none" points="4992,10320 5018,10273 4965,10273"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4992,13824 4992,14016 3770,14016"/>
<polygon fill="#404040" stroke="none" points="3744,14016 3790,14042 3790,13989"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3120,9888 2736,9888 2736,10293"/>
<polygon fill="#404040" stroke="none" points="2736,10320 2762,10273 2709,10273"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2736,10848 2736,14016 3621,14016"/>
<polygon fill="#404040" stroke="none" points="3648,14016 3601,13989 3601,14042"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 3696,9552 L 3072,9888 L 3696,10224 L 4320,9888 Z"/>
<text x="3696" y="9820" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3696" dy="96" unicode-bidi="embed">id_book == book-&gt;iNum</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4992,11856 4992,11973"/>
<polygon fill="#404040" stroke="none" points="4992,12000 5018,11953 4965,11953"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="5520,10608 5856,10608 5856,10965"/>
<polygon fill="#404040" stroke="none" points="5856,10992 5882,10945 5829,10945"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="5856,11616 5856,11808 5066,11808"/>
<polygon fill="#404040" stroke="none" points="5040,11808 5086,11834 5086,11781"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4464,10608 4080,10608 4080,11808 4917,11808"/>
<polygon fill="#404040" stroke="none" points="4944,11808 4897,11781 4897,11834"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 4992,10320 L 4416,10608 L 4992,10896 L 5568,10608 Z"/>
<text x="4992" y="10540" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4992" dy="96" unicode-bidi="embed">book-&gt;iAmount &lt;= 1</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="5856,11280 5856,11397"/>
<polygon fill="#404040" stroke="none" points="5856,11424 5882,11377 5829,11377"/>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 5280,10992 L 5136,11280 L 6432,11280 L 6576,10992 Z"/>
<text x="5856" y="11020" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5856" dy="96" unicode-bidi="embed">Output</tspan>
<tspan x="5856" dy="96" unicode-bidi="embed"> &#20511;&#38405;&#22833;&#36133;&#35813;&#22270;&#20070;&#24211;&#23384;&#19981;&#36275;</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 5424,11424 L 5328,11616 L 6288,11616 L 6384,11424 Z"/>
<text x="5856" y="11452" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5856" dy="96" unicode-bidi="embed">Output &#36820;&#22238;NULL</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="4992" cy="11808" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="5712" y="10444" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5712" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="4248" y="10444" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4248" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="5760,12432 6096,12432 6096,12933"/>
<polygon fill="#404040" stroke="none" points="6096,12960 6122,12913 6069,12913"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="6096,13584 6096,13776 5066,13776"/>
<polygon fill="#404040" stroke="none" points="5040,13776 5086,13802 5086,13749"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4224,12432 3840,12432 3840,13776 4917,13776"/>
<polygon fill="#404040" stroke="none" points="4944,13776 4897,13749 4897,13802"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 4992,12000 L 4176,12432 L 4992,12864 L 5808,12432 Z"/>
<text x="4992" y="12316" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4992" dy="96" unicode-bidi="embed">(tmp-&gt;iAmount) + 1 &gt; tmp-&gt;</tspan>
<tspan x="4992" dy="96" unicode-bidi="embed">iMax</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="6096,13248 6096,13365"/>
<polygon fill="#404040" stroke="none" points="6096,13392 6122,13345 6069,13345"/>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 5280,12960 L 5136,13248 L 6912,13248 L 7056,12960 Z"/>
<text x="6096" y="12988" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="6096" dy="96" unicode-bidi="embed">Output</tspan>
<tspan x="6096" dy="96" unicode-bidi="embed"> &#20511;&#38405;&#22833;&#36133;&#35813;&#35835;&#32773;&#20511;&#38405;&#22270;&#20070;&#25968;&#37327;&#24050;&#36798;&#19978;&#32447;</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 5664,13392 L 5568,13584 L 6528,13584 L 6624,13392 Z"/>
<text x="6096" y="13420" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="6096" dy="96" unicode-bidi="embed">Output &#36820;&#22238;NULL</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="4992" cy="13776" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="5952" y="12268" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5952" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="4008" y="12268" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4008" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2736,10512 2736,10629"/>
<polygon fill="#404040" stroke="none" points="2736,10656 2762,10609 2709,10609"/>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 2352,10320 L 2256,10512 L 3120,10512 L 3216,10320 Z"/>
<text x="2736" y="10348" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2736" dy="96" unicode-bidi="embed">Output &#20511;&#38405;&#25104;&#21151;</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 2304,10656 L 2208,10848 L 3168,10848 L 3264,10656 Z"/>
<text x="2736" y="10684" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2736" dy="96" unicode-bidi="embed">Output &#36820;&#22238;reader</tspan>
</text>
</g>
</g>
<ellipse cx="3696" cy="14016" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="4464" y="9724" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4464" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="2904" y="9724" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2904" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="6" stroke-dasharray="none" d="M 1536,9264 L 1440,9360 L 1536,9456 L 2208,9456 L 2304,9360 L 2208,9264 Z"/>
<text x="1872" y="9292" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">book!=NULL</tspan>
</text>
</g>
<text x="2448" y="9196" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2448" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="1704" y="9484" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1704" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 1296,14400 L 1200,14592 L 2448,14592 L 2544,14400 Z"/>
<text x="1872" y="14428" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">Output book = book-&gt;next</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 1392,14736 L 1296,14928 L 2352,14928 L 2448,14736 Z"/>
<text x="1872" y="14764" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">Output &#27809;&#26377;&#25214;&#21040;&#35813;&#20070;</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 1440,15072 L 1344,15264 L 2304,15264 L 2400,15072 Z"/>
<text x="1872" y="15100" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">Output &#36820;&#22238;reader1</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2256,15648 2592,15648 2592,16005"/>
<polygon fill="#404040" stroke="none" points="2592,16032 2618,15985 2565,15985"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2592,24048 2592,24240 1946,24240"/>
<polygon fill="#404040" stroke="none" points="1920,24240 1966,24266 1966,24213"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1488,15648 1104,15648 1104,15957"/>
<polygon fill="#404040" stroke="none" points="1104,15984 1130,15937 1077,15937"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1104,16272 1104,24240 1797,24240"/>
<polygon fill="#404040" stroke="none" points="1824,24240 1777,24213 1777,24266"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="6" stroke-dasharray="none" d="M 1872,15408 L 1440,15648 L 1872,15888 L 2304,15648 Z"/>
<text x="1872" y="15580" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">reader!=NULL</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2592,16224 2592,23493"/>
<polygon fill="#404040" stroke="none" points="2592,23520 2618,23473 2565,23473"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2592,23712 2592,23829"/>
<polygon fill="#404040" stroke="none" points="2592,23856 2618,23809 2565,23809"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3072,16128 4512,16128 4512,16293"/>
<polygon fill="#404040" stroke="none" points="4512,16320 4538,16273 4485,16273"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4512,23184 4512,23328 2688,23328 2688,16250"/>
<polygon fill="#404040" stroke="none" points="2688,16224 2661,16270 2714,16270"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4512,22848 4512,22965"/>
<polygon fill="#404040" stroke="none" points="4512,22992 4538,22945 4485,22945"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4992,16608 5328,16608 5328,16965"/>
<polygon fill="#404040" stroke="none" points="5328,16992 5354,16945 5301,16945"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="5328,17904 5328,22800 4586,22800"/>
<polygon fill="#404040" stroke="none" points="4560,22800 4606,22826 4606,22773"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4032,16608 3648,16608 3648,16965"/>
<polygon fill="#404040" stroke="none" points="3648,16992 3674,16945 3621,16945"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3648,17952 3648,22800 4437,22800"/>
<polygon fill="#404040" stroke="none" points="4464,22800 4417,22773 4417,22826"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 4512,16320 L 3984,16608 L 4512,16896 L 5040,16608 Z"/>
<text x="4512" y="16540" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4512" dy="96" unicode-bidi="embed">id == reader-&gt;iNum</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="5328,17184 5328,17301"/>
<polygon fill="#404040" stroke="none" points="5328,17328 5354,17281 5301,17281"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="5328,17520 5328,17685"/>
<polygon fill="#404040" stroke="none" points="5328,17712 5354,17665 5301,17665"/>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 4704,16992 L 4608,17184 L 5952,17184 L 6048,16992 Z"/>
<text x="5328" y="17020" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5328" dy="96" unicode-bidi="embed">Output &#22270;&#20351;&#39302;&#24403;&#21069;&#30340;&#20070;&#20876;&#31821;</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 4848,17328 L 4752,17520 L 5808,17520 L 5904,17328 Z"/>
<text x="5328" y="17356" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5328" dy="96" unicode-bidi="embed">Input &#35201;&#20511;&#30340;&#20070;&#30340;&#32534;&#21495;</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="5760,17808 6624,17808 6624,17973"/>
<polygon fill="#404040" stroke="none" points="6624,18000 6650,17953 6597,17953"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="6624,22416 6624,22560 5424,22560 5424,17930"/>
<polygon fill="#404040" stroke="none" points="5424,17904 5397,17950 5450,17950"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="7200,18336 7920,18336 7920,18741"/>
<polygon fill="#404040" stroke="none" points="7920,18768 7946,18721 7893,18721"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="7920,22176 7920,22368 6698,22368"/>
<polygon fill="#404040" stroke="none" points="6672,22368 6718,22394 6718,22341"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="6048,18336 5664,18336 5664,22368 6549,22368"/>
<polygon fill="#404040" stroke="none" points="6576,22368 6529,22341 6529,22394"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 6624,18000 L 6000,18336 L 6624,18672 L 7248,18336 Z"/>
<text x="6624" y="18268" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="6624" dy="96" unicode-bidi="embed">id_book == book-&gt;iNum</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="7920,20208 7920,20325"/>
<polygon fill="#404040" stroke="none" points="7920,20352 7946,20305 7893,20305"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="8448,19056 8784,19056 8784,19413"/>
<polygon fill="#404040" stroke="none" points="8784,19440 8810,19393 8757,19393"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="8784,19968 8784,20160 7994,20160"/>
<polygon fill="#404040" stroke="none" points="7968,20160 8014,20186 8014,20133"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="7392,19056 7008,19056 7008,20160 7845,20160"/>
<polygon fill="#404040" stroke="none" points="7872,20160 7825,20133 7825,20186"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 7920,18768 L 7344,19056 L 7920,19344 L 8496,19056 Z"/>
<text x="7920" y="18988" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="7920" dy="96" unicode-bidi="embed">book-&gt;iAmount &lt;= 1</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="8784,19632 8784,19749"/>
<polygon fill="#404040" stroke="none" points="8784,19776 8810,19729 8757,19729"/>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 8400,19440 L 8304,19632 L 9168,19632 L 9264,19440 Z"/>
<text x="8784" y="19468" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="8784" dy="96" unicode-bidi="embed">Output &#20511;&#38405;&#22833;&#36133;</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 8304,19776 L 8208,19968 L 9264,19968 L 9360,19776 Z"/>
<text x="8784" y="19804" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="8784" dy="96" unicode-bidi="embed">Output returnreader1</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="7920" cy="20160" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="8640" y="18892" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="8640" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="7176" y="18892" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="7176" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="8688,20784 9024,20784 9024,21285"/>
<polygon fill="#404040" stroke="none" points="9024,21312 9050,21265 8997,21265"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="9024,21936 9024,22128 7994,22128"/>
<polygon fill="#404040" stroke="none" points="7968,22128 8014,22154 8014,22101"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="7152,20784 6768,20784 6768,22128 7845,22128"/>
<polygon fill="#404040" stroke="none" points="7872,22128 7825,22101 7825,22154"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 7920,20352 L 7104,20784 L 7920,21216 L 8736,20784 Z"/>
<text x="7920" y="20668" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="7920" dy="96" unicode-bidi="embed">(tmpp-&gt;iAmount + 1 &gt; tmpp</tspan>
<tspan x="7920" dy="96" unicode-bidi="embed">-&gt;iMax</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="9024,21600 9024,21717"/>
<polygon fill="#404040" stroke="none" points="9024,21744 9050,21697 8997,21697"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 8400,21312 L 8256,21600 L 9648,21600 L 9792,21312 Z"/>
<text x="9024" y="21340" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="9024" dy="96" unicode-bidi="embed">Output &#20511;&#38405;&#22833;&#36133;,</tspan>
<tspan x="9024" dy="96" unicode-bidi="embed">&#35813;&#35835;&#32773;&#20511;&#38405;&#22270;&#20070;&#25968;&#37327;&#24050;&#36798;&#19978;&#32447;</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 8592,21744 L 8496,21936 L 9456,21936 L 9552,21744 Z"/>
<text x="9024" y="21772" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="9024" dy="96" unicode-bidi="embed">Output &#36820;&#22238;reader1</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="7920" cy="22128" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="8880" y="20620" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="8880" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="6936" y="20620" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="6936" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="6624" cy="22368" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="7392" y="18172" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="7392" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="5832" y="18172" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5832" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="6" stroke-dasharray="none" d="M 4992,17712 L 4896,17808 L 4992,17904 L 5664,17904 L 5760,17808 L 5664,17712 Z"/>
<text x="5328" y="17740" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5328" dy="96" unicode-bidi="embed">book!=NULL</tspan>
</text>
</g>
<text x="5904" y="17644" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5904" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="5160" y="17932" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5160" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3648,17184 3648,17301"/>
<polygon fill="#404040" stroke="none" points="3648,17328 3674,17281 3621,17281"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3648,17616 3648,17733"/>
<polygon fill="#404040" stroke="none" points="3648,17760 3674,17713 3621,17713"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 3072,16992 L 2976,17184 L 4224,17184 L 4320,16992 Z"/>
<text x="3648" y="17020" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3648" dy="96" unicode-bidi="embed">Output reader-&gt;iAmount++</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 3072,17328 L 2928,17616 L 4224,17616 L 4368,17328 Z"/>
<text x="3648" y="17356" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3648" dy="96" unicode-bidi="embed">Output reader-&gt;aiBookId</tspan>
<tspan x="3648" dy="96" unicode-bidi="embed">[tmpp-&gt;iAmount] = id_book</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 3216,17760 L 3120,17952 L 4080,17952 L 4176,17760 Z"/>
<text x="3648" y="17788" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3648" dy="96" unicode-bidi="embed">Output &#36820;&#22238;reader1</tspan>
</text>
</g>
</g>
<ellipse cx="4512" cy="22800" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="5184" y="16444" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5184" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="3816" y="16444" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3816" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 3936,22992 L 3840,23184 L 5088,23184 L 5184,22992 Z"/>
<text x="4512" y="23020" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4512" dy="96" unicode-bidi="embed">Output book = book-&gt;next</tspan>
</text>
</g>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="6" stroke-dasharray="none" d="M 2208,16032 L 2112,16128 L 2208,16224 L 2976,16224 L 3072,16128 L 2976,16032 Z"/>
<text x="2592" y="16060" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2592" dy="96" unicode-bidi="embed">reader != NULL</tspan>
</text>
</g>
<text x="3216" y="15964" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3216" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="2424" y="16252" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2424" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 2112,23520 L 2016,23712 L 3072,23712 L 3168,23520 Z"/>
<text x="2592" y="23548" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2592" dy="96" unicode-bidi="embed">Output &#27809;&#26377;&#25214;&#21040;&#35813;&#20070;</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 2112,23856 L 2016,24048 L 3072,24048 L 3168,23856 Z"/>
<text x="2592" y="23884" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2592" dy="96" unicode-bidi="embed">Output &#25353;&#20219;&#24847;&#38190;&#36820;&#22238;</tspan>
</text>
</g>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 576,15984 L 432,16272 L 1632,16272 L 1776,15984 Z"/>
<text x="1104" y="16012" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1104" dy="96" unicode-bidi="embed">Output reader = reader-&gt;</tspan>
<tspan x="1104" dy="96" unicode-bidi="embed">next</tspan>
</text>
</g>
<ellipse cx="1872" cy="24240" rx="48" ry="48" fill="#FFD0D0" stroke="#A07070" stroke-width="6"/>
<text x="2448" y="15484" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2448" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="1272" y="15484" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1272" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 47 KiB

@ -0,0 +1,166 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="4416" height="6144">
<rect x="0" y="0" width="4416" height="6144" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="816,384 816,501"/>
<polygon fill="#404040" stroke="none" points="816,528 842,481 789,481"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="816,5616 816,5733"/>
<polygon fill="#404040" stroke="none" points="816,5760 842,5713 789,5713"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="6" stroke-dasharray="none" d="M 576,192 A 96 96, 0, 0 0, 576 384 L 1056,384 A 96 96, 0, 0 0, 1056 192 Z"/>
<text x="816" y="220" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="816" dy="96" unicode-bidi="embed">ReaderInfo</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="6" stroke-dasharray="none" d="M 624,5760 A 96 96, 0, 0 0, 624 5952 L 1008,5952 A 96 96, 0, 0 0, 1008 5760 Z"/>
<text x="816" y="5788" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="816" dy="96" unicode-bidi="embed">End</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="816,768 816,885"/>
<polygon fill="#404040" stroke="none" points="816,912 842,865 789,865"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="816,1152 816,1269"/>
<polygon fill="#404040" stroke="none" points="816,1296 842,1249 789,1249"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="816,1488 816,1605"/>
<polygon fill="#404040" stroke="none" points="816,1632 842,1585 789,1585"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="816,1824 816,1989"/>
<polygon fill="#404040" stroke="none" points="816,2016 842,1969 789,1969"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="816,2208 816,5061"/>
<polygon fill="#404040" stroke="none" points="816,5088 842,5041 789,5041"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="816,5280 816,5397"/>
<polygon fill="#404040" stroke="none" points="816,5424 842,5377 789,5377"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" d="M 432,528 L 432,768 L 1200,768 L 1200,528 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="432,576 1200,576"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="480,528 480,768"/>
<text x="840" y="604" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="840" dy="96" unicode-bidi="embed">String reader1</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" d="M 528,912 L 528,1152 L 1104,1152 L 1104,912 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="528,960 1104,960"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="576,912 576,1152"/>
<text x="840" y="988" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="840" dy="96" unicode-bidi="embed">Integer id</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 624,1296 L 528,1488 L 1008,1488 L 1104,1296 Z"/>
<text x="816" y="1324" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="816" dy="96" unicode-bidi="embed">Input id</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 480,1632 L 384,1824 L 1152,1824 L 1248,1632 Z"/>
<text x="816" y="1660" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="816" dy="96" unicode-bidi="embed">Input reader1</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1104,2112 2688,2112 2688,2277"/>
<polygon fill="#404040" stroke="none" points="2688,2304 2714,2257 2661,2257"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2688,4752 2688,4896 912,4896 912,2234"/>
<polygon fill="#404040" stroke="none" points="912,2208 885,2254 938,2254"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3168,2592 3504,2592 3504,2949"/>
<polygon fill="#404040" stroke="none" points="3504,2976 3530,2929 3477,2929"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3504,4512 3504,4704 2762,4704"/>
<polygon fill="#404040" stroke="none" points="2736,4704 2782,4730 2782,4677"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2208,2592 1824,2592 1824,2949"/>
<polygon fill="#404040" stroke="none" points="1824,2976 1850,2929 1797,2929"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1824,3264 1824,4704 2613,4704"/>
<polygon fill="#404040" stroke="none" points="2640,4704 2593,4677 2593,4730"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 2688,2304 L 2160,2592 L 2688,2880 L 3216,2592 Z"/>
<text x="2688" y="2524" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2688" dy="96" unicode-bidi="embed">id == reader-&gt;iNum</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3504,3168 3504,3285"/>
<polygon fill="#404040" stroke="none" points="3504,3312 3530,3265 3477,3265"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3504,3504 3504,3621"/>
<polygon fill="#404040" stroke="none" points="3504,3648 3530,3601 3477,3601"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3504,3840 3504,3957"/>
<polygon fill="#404040" stroke="none" points="3504,3984 3530,3937 3477,3937"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3504,4176 3504,4293"/>
<polygon fill="#404040" stroke="none" points="3504,4320 3530,4273 3477,4273"/>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 3168,2976 L 3072,3168 L 3840,3168 L 3936,2976 Z"/>
<text x="3504" y="3004" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3504" dy="96" unicode-bidi="embed">Output &#35835;&#32773;id</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 3120,3312 L 3024,3504 L 3888,3504 L 3984,3312 Z"/>
<text x="3504" y="3340" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3504" dy="96" unicode-bidi="embed">Output &#35835;&#32773;&#22995;&#21517;</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 3120,3648 L 3024,3840 L 3888,3840 L 3984,3648 Z"/>
<text x="3504" y="3676" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3504" dy="96" unicode-bidi="embed">Output &#35835;&#32773;&#24615;&#21035;</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 2880,3984 L 2784,4176 L 4128,4176 L 4224,3984 Z"/>
<text x="3504" y="4012" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3504" dy="96" unicode-bidi="embed">Output &#35835;&#32773;&#24050;&#20511;&#38405;&#20070;&#30340;&#25968;&#37327;</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 3216,4320 L 3120,4512 L 3792,4512 L 3888,4320 Z"/>
<text x="3504" y="4348" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3504" dy="96" unicode-bidi="embed">Input reader</tspan>
</text>
</g>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 1296,2976 L 1152,3264 L 2352,3264 L 2496,2976 Z"/>
<text x="1824" y="3004" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1824" dy="96" unicode-bidi="embed">Output reader = reader-&gt;</tspan>
<tspan x="1824" dy="96" unicode-bidi="embed">next</tspan>
</text>
</g>
<ellipse cx="2688" cy="4704" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="3360" y="2428" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3360" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="1992" y="2428" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1992" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="6" stroke-dasharray="none" d="M 624,2016 L 528,2112 L 624,2208 L 1008,2208 L 1104,2112 L 1008,2016 Z"/>
<text x="816" y="2044" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="816" dy="96" unicode-bidi="embed">reader</tspan>
</text>
</g>
<text x="1248" y="1948" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1248" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="648" y="2236" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="648" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 288,5088 L 192,5280 L 1344,5280 L 1440,5088 Z"/>
<text x="816" y="5116" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="816" dy="96" unicode-bidi="embed">Output &#27809;&#26377;&#25214;&#21040;&#35813;&#35835;&#32773;</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 528,5424 L 432,5616 L 1104,5616 L 1200,5424 Z"/>
<text x="816" y="5452" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="816" dy="96" unicode-bidi="embed">Input reader</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 11 KiB

@ -0,0 +1,128 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="2196" height="3996">
<rect x="0" y="0" width="2196" height="3996" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="828,288 828,375"/>
<polygon fill="#404040" stroke="none" points="828,396 848,361 807,361"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="828,3600 828,3687"/>
<polygon fill="#404040" stroke="none" points="828,3708 848,3673 807,3673"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 684,144 A 72 72, 0, 0 0, 684 288 L 972,288 A 72 72, 0, 0 0, 972 144 Z"/>
<text x="828" y="165" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="828" dy="72" unicode-bidi="embed">&#24320;&#22987;</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 684,3708 A 72 72, 0, 0 0, 684 3852 L 972,3852 A 72 72, 0, 0 0, 972 3708 Z"/>
<text x="828" y="3729" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="828" dy="72" unicode-bidi="embed">End</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="828,648 828,735"/>
<polygon fill="#404040" stroke="none" points="828,756 848,721 807,721"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="828,900 828,987"/>
<polygon fill="#404040" stroke="none" points="828,1008 848,973 807,973"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="828,1152 828,1239"/>
<polygon fill="#404040" stroke="none" points="828,1260 848,1225 807,1225"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="828,1404 828,1527"/>
<polygon fill="#404040" stroke="none" points="828,1548 848,1513 807,1513"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="828,1692 828,2319"/>
<polygon fill="#404040" stroke="none" points="828,2340 848,2305 807,2305"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="828,2484 828,3075"/>
<polygon fill="#404040" stroke="none" points="828,3096 848,3061 807,3061"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 396,396 L 396,648 L 1260,648 L 1260,396 Z"/>
<polyline fill="none" stroke="#602020" stroke-width="5" stroke-dasharray="none" points="396,432 1260,432"/>
<polyline fill="none" stroke="#602020" stroke-width="5" stroke-dasharray="none" points="432,396 432,648"/>
<text x="846" y="453" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="846" dy="72" unicode-bidi="embed">Integer Book*book=book1</tspan>
<tspan x="846" dy="72" unicode-bidi="embed"> Reader*reader=reader1</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" d="M 576,756 L 576,900 L 1080,900 L 1080,756 Z"/>
<text x="828" y="777" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="828" dy="72" unicode-bidi="embed">bookNUm = 0</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" d="M 540,1008 L 540,1152 L 1116,1152 L 1116,1008 Z"/>
<text x="828" y="1029" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="828" dy="72" unicode-bidi="embed">readerNUm = 0</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" d="M 540,1260 L 540,1404 L 1116,1404 L 1116,1260 Z"/>
<text x="828" y="1281" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="828" dy="72" unicode-bidi="embed">mangerNUm = 0</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1152,1620 1548,1620 1548,1743"/>
<polygon fill="#404040" stroke="none" points="1548,1764 1568,1729 1527,1729"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1548,2052 1548,2160 900,2160 900,1712"/>
<polygon fill="#404040" stroke="none" points="900,1692 879,1726 920,1726"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 1188,1764 L 1044,2052 L 1908,2052 L 2052,1764 Z"/>
<text x="1548" y="1785" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1548" dy="72" unicode-bidi="embed">Output readerNUm</tspan>
<tspan x="1548" dy="72" unicode-bidi="embed">++;&#13;</tspan>
<tspan x="1548" dy="72" unicode-bidi="embed">reader=reader-&gt;next;</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="5" stroke-dasharray="none" d="M 576,1548 L 504,1620 L 576,1692 L 1080,1692 L 1152,1620 L 1080,1548 Z"/>
<text x="828" y="1569" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="828" dy="72" unicode-bidi="embed">reader!=NULL</tspan>
</text>
</g>
<text x="1260" y="1497" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1260" dy="72" unicode-bidi="embed">True</tspan>
</text>
<text x="702" y="1713" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="702" dy="72" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1152,2412 1548,2412 1548,2535"/>
<polygon fill="#404040" stroke="none" points="1548,2556 1568,2521 1527,2521"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1548,2844 1548,2952 900,2952 900,2504"/>
<polygon fill="#404040" stroke="none" points="900,2484 879,2518 920,2518"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 1188,2556 L 1044,2844 L 1908,2844 L 2052,2556 Z"/>
<text x="1548" y="2577" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1548" dy="72" unicode-bidi="embed">Output readerNUm</tspan>
<tspan x="1548" dy="72" unicode-bidi="embed">++;&#13;</tspan>
<tspan x="1548" dy="72" unicode-bidi="embed">reader=reader-&gt;next;</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="5" stroke-dasharray="none" d="M 576,2340 L 504,2412 L 576,2484 L 1080,2484 L 1152,2412 L 1080,2340 Z"/>
<text x="828" y="2361" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="828" dy="72" unicode-bidi="embed">reader!=NULL</tspan>
</text>
</g>
<text x="1260" y="2289" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1260" dy="72" unicode-bidi="embed">True</tspan>
</text>
<text x="702" y="2505" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="702" dy="72" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 396,3096 L 144,3600 L 1260,3600 L 1512,3096 Z"/>
<text x="828" y="3117" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="828" dy="72" unicode-bidi="embed">Output printf</tspan>
<tspan x="828" dy="72" unicode-bidi="embed">(&quot;&#26412;&#22270;&#20070;&#39302;&#20849;&#26377;&#34255;&#20070;%d&#26412;,</tspan>
<tspan x="828" dy="72" unicode-bidi="embed">&#35835;&#32773;%d&#20154;\n&quot;, bookNUm,</tspan>
<tspan x="828" dy="72" unicode-bidi="embed"> readerNUm);&#13;</tspan>
<tspan x="828" dy="72" unicode-bidi="embed">printf</tspan>
<tspan x="828" dy="72" unicode-bidi="embed">(&quot;&#25353;&#20219;&#24847;&#38190;&#36820;&#22238;\n&quot;);</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.4 KiB

@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="2412" height="2484">
<rect x="0" y="0" width="2412" height="2484" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="612,288 612,375"/>
<polygon fill="#404040" stroke="none" points="612,396 632,361 591,361"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="612,2088 612,2175"/>
<polygon fill="#404040" stroke="none" points="612,2196 632,2161 591,2161"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 468,144 A 72 72, 0, 0 0, 468 288 L 756,288 A 72 72, 0, 0 0, 756 144 Z"/>
<text x="612" y="165" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="612" dy="72" unicode-bidi="embed">Main</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 468,2196 A 72 72, 0, 0 0, 468 2340 L 756,2340 A 72 72, 0, 0 0, 756 2196 Z"/>
<text x="612" y="2217" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="612" dy="72" unicode-bidi="embed">End</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="612,540 612,663"/>
<polygon fill="#404040" stroke="none" points="612,684 632,649 591,649"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="612,828 612,1707"/>
<polygon fill="#404040" stroke="none" points="612,1728 632,1693 591,1693"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 288,396 L 288,540 L 936,540 L 936,396 Z"/>
<text x="612" y="417" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="612" dy="72" unicode-bidi="embed">Book*book = book1</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="936,756 1548,756 1548,879"/>
<polygon fill="#404040" stroke="none" points="1548,900 1568,865 1527,865"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1548,1476 1548,1584 684,1584 684,848"/>
<polygon fill="#404040" stroke="none" points="684,828 663,862 704,862"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 1116,900 L 828,1476 L 1980,1476 L 2268,900 Z"/>
<text x="1548" y="921" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1548" dy="72" unicode-bidi="embed">Output printf(&quot;%d\t%s\t%s\t</tspan>
<tspan x="1548" dy="72" unicode-bidi="embed">%s\t%d\n&quot;, book-&gt;iNum,</tspan>
<tspan x="1548" dy="72" unicode-bidi="embed"> book-&gt;acName, book-&gt;</tspan>
<tspan x="1548" dy="72" unicode-bidi="embed">acAuthor, book-&gt;acPress,</tspan>
<tspan x="1548" dy="72" unicode-bidi="embed"> book-&gt;</tspan>
<tspan x="1548" dy="72" unicode-bidi="embed">iAmount);&#13;</tspan>
<tspan x="1548" dy="72" unicode-bidi="embed">book = book-&gt;next;</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="5" stroke-dasharray="none" d="M 360,684 L 288,756 L 360,828 L 864,828 L 936,756 L 864,684 Z"/>
<text x="612" y="705" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="612" dy="72" unicode-bidi="embed">book!=NULL</tspan>
</text>
</g>
<text x="1044" y="633" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1044" dy="72" unicode-bidi="embed">True</tspan>
</text>
<text x="486" y="849" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="486" dy="72" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 324,1728 L 144,2088 L 900,2088 L 1080,1728 Z"/>
<text x="612" y="1749" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="612" dy="72" unicode-bidi="embed">Output printf(&quot;\</tspan>
<tspan x="612" dy="72" unicode-bidi="embed">n&#25353;&#20219;&#24847;&#38190;&#36820;&#22238;\</tspan>
<tspan x="612" dy="72" unicode-bidi="embed">n&quot;);&#13;</tspan>
<tspan x="612" dy="72" unicode-bidi="embed">getchar();</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.7 KiB

@ -0,0 +1,281 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="6480" height="11124">
<rect x="0" y="0" width="6480" height="11124" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,288 756,375"/>
<polygon fill="#404040" stroke="none" points="756,396 776,361 735,361"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,10728 756,10815"/>
<polygon fill="#404040" stroke="none" points="756,10836 776,10801 735,10801"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 612,144 A 72 72, 0, 0 0, 612 288 L 900,288 A 72 72, 0, 0 0, 900 144 Z"/>
<text x="756" y="165" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">kaishi</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 612,10836 A 72 72, 0, 0 0, 612 10980 L 900,10980 A 72 72, 0, 0 0, 900 10836 Z"/>
<text x="756" y="10857" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">End</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,540 756,627"/>
<polygon fill="#404040" stroke="none" points="756,648 776,613 735,613"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,4068 756,4191"/>
<polygon fill="#404040" stroke="none" points="756,4212 776,4177 735,4177"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,4356 756,10419"/>
<polygon fill="#404040" stroke="none" points="756,10440 776,10405 735,10405"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 432,396 L 432,540 L 1080,540 L 1080,396 Z"/>
<text x="756" y="417" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">Book*book = book1</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1044,828 2700,828 2700,1059"/>
<polygon fill="#404040" stroke="none" points="2700,1080 2720,1045 2679,1045"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2700,3888 2700,4032 812,4032"/>
<polygon fill="#404040" stroke="none" points="792,4032 826,4052 826,4011"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="468,828 180,828 180,4032 699,4032"/>
<polygon fill="#404040" stroke="none" points="720,4032 685,4011 685,4052"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="5" stroke-dasharray="none" d="M 756,648 L 432,828 L 756,1008 L 1080,828 Z"/>
<text x="756" y="777" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">book==NULL</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 2232,1080 L 828,3888 L 3168,3888 L 4572,1080 Z"/>
<text x="2700" y="1101" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2700" dy="72" unicode-bidi="embed">Output Book* tmp = (Book*)</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">malloc(sizeof</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">(Book));&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;tmp-&gt;next = NULL</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">;&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;assert</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">(tmp);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;printf</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">(&quot;&#36755;&#20837;&#20070;&#30340;&#32534;&#21495;:&quot;);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;scanf(&quot;%d&quot;, &amp;tmp-&gt;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">iNum);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;getchar</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">();&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;printf</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">(&quot;&#36755;&#20837;&#20070;&#30340;&#21517;&#31216;:&quot;);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;gets(&amp;tmp-&gt;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">acName);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;printf</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">(&quot;&#36755;&#20837;&#20070;&#30340;&#20316;&#32773;:&quot;);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;gets(tmp-&gt;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">acAuthor);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;printf</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">(&quot;&#36755;&#20837;&#20070;&#30340;&#20986;&#29256;&#31038;:&quot;);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;gets(tmp-&gt;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">acPress);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;printf</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">(&quot;&#36755;&#20837;&#20070;&#30340;&#24211;&#23384;&#37327;:&quot;);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;scanf(&quot;%d&quot;, &amp;tmp-&gt;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">iAmount);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;book = tmp</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">;&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed"></tspan>
<tspan x="2700" dy="72" unicode-bidi="embed"> &#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;printf(&quot;&#25353;&#20219;&#24847;&#38190;&#36820;&#22238;\</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">n&quot;);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;getchar</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">();&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;return book;</tspan>
</text>
</g>
<g>
</g>
<ellipse cx="756" cy="4032" rx="36" ry="36" fill="#FFD0D0" stroke="#A07070" stroke-width="5"/>
<text x="1188" y="705" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1188" dy="72" unicode-bidi="embed">True</tspan>
</text>
<text x="306" y="705" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="306" dy="72" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="972,4284 1440,4284 1440,4443"/>
<polygon fill="#404040" stroke="none" points="1440,4464 1460,4429 1419,4429"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1440,10188 1440,10296 828,10296 828,4376"/>
<polygon fill="#404040" stroke="none" points="828,4356 807,4390 848,4390"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1440,4608 1440,10023"/>
<polygon fill="#404040" stroke="none" points="1440,10044 1460,10009 1419,10009"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1836,4536 2016,4536 2016,4659"/>
<polygon fill="#404040" stroke="none" points="2016,4680 2036,4645 1995,4645"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2016,5400 2016,9900 1512,9900 1512,4628"/>
<polygon fill="#404040" stroke="none" points="1512,4608 1491,4642 1532,4642"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2016,4860 2016,4947"/>
<polygon fill="#404040" stroke="none" points="2016,4968 2036,4933 1995,4933"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2016,5112 2016,5235"/>
<polygon fill="#404040" stroke="none" points="2016,5256 2036,5221 1995,5221"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" d="M 1800,4680 L 1800,4860 L 2232,4860 L 2232,4680 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" points="1800,4716 2232,4716"/>
<polyline fill="none" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" points="1836,4680 1836,4860"/>
<text x="2034" y="4737" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2034" dy="72" unicode-bidi="embed">Integer flag</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" d="M 1800,4968 L 1800,5112 L 2232,5112 L 2232,4968 Z"/>
<text x="2016" y="4989" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2016" dy="72" unicode-bidi="embed">flag = 1</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2232,5328 4284,5328 4284,5451"/>
<polygon fill="#404040" stroke="none" points="4284,5472 4304,5437 4263,5437"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="4284,9648 4284,9756 2088,9756 2088,5420"/>
<polygon fill="#404040" stroke="none" points="2088,5400 2067,5434 2108,5434"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="4284,8640 4284,8727"/>
<polygon fill="#404040" stroke="none" points="4284,8748 4304,8713 4263,8713"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 3816,5472 L 2232,8640 L 4752,8640 L 6336,5472 Z"/>
<text x="4284" y="5493" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4284" dy="72" unicode-bidi="embed">Output Book* tmp = (Book*)</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">malloc(sizeof</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">(Book));&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed"></tspan>
<tspan x="4284" dy="72" unicode-bidi="embed"> &#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;tmp-&gt;next = NULL</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">;&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;assert</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">(tmp);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;printf</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">(&quot;&#36755;&#20837;&#20070;&#30340;&#32534;&#21495;:&quot;);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;scanf(&quot;%d&quot;, &amp;tmp-&gt;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">iNum);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;getchar</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">();&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;printf</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">(&quot;&#36755;&#20837;&#20070;&#30340;&#21517;&#31216;:&quot;);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;gets(&amp;tmp-&gt;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">acName);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;printf</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">(&quot;&#36755;&#20837;&#20070;&#30340;&#20316;&#32773;:&quot;);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;gets(tmp-&gt;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">acAuthor);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;printf</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">(&quot;&#36755;&#20837;&#20070;&#30340;&#20986;&#29256;&#31038;:&quot;);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;gets(tmp-&gt;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">acPress);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;printf</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">(&quot;&#36755;&#20837;&#20070;&#30340;&#24211;&#23384;&#37327;:&quot;);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;scanf(&quot;%d&quot;, &amp;tmp-&gt;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">iAmount);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed"></tspan>
<tspan x="4284" dy="72" unicode-bidi="embed"> &#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;book-&gt;next = tmp</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">;&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed"></tspan>
<tspan x="4284" dy="72" unicode-bidi="embed"> &#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;printf(&quot;&#26159;&#21542;&#32487;&#32493;&#36755;&#20837;:1==&gt;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#32487;&#32493;\t0==&gt;&#32467;&#26463;\</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">t&quot;);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;scanf(&quot;%d&quot;, &amp;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">flag);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;getchar();</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="4464,8856 5040,8856 5040,9015"/>
<polygon fill="#404040" stroke="none" points="5040,9036 5060,9001 5019,9001"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="5040,9468 5040,9612 4340,9612"/>
<polygon fill="#404040" stroke="none" points="4320,9612 4354,9632 4354,9591"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="4104,8856 3816,8856 3816,9612 4227,9612"/>
<polygon fill="#404040" stroke="none" points="4248,9612 4213,9591 4213,9632"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="5" stroke-dasharray="none" d="M 4284,8748 L 4068,8856 L 4284,8964 L 4500,8856 Z"/>
<text x="4284" y="8805" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4284" dy="72" unicode-bidi="embed">flag==0</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 4572,9036 L 4356,9468 L 5508,9468 L 5724,9036 Z"/>
<text x="5040" y="9057" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5040" dy="72" unicode-bidi="embed">Output printf(&quot;&#25353;&#20219;&#24847;&#38190;&#36820;&#22238;\</tspan>
<tspan x="5040" dy="72" unicode-bidi="embed">n&quot;);&#13;</tspan>
<tspan x="5040" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;&#9;getchar</tspan>
<tspan x="5040" dy="72" unicode-bidi="embed">();&#13;</tspan>
<tspan x="5040" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;&#9;return book1;</tspan>
</text>
</g>
<g>
</g>
<ellipse cx="4284" cy="9612" rx="36" ry="36" fill="#FFD0D0" stroke="#A07070" stroke-width="5"/>
<text x="4608" y="8733" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4608" dy="72" unicode-bidi="embed">True</tspan>
</text>
<text x="3942" y="8733" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3942" dy="72" unicode-bidi="embed">False</tspan>
</text>
</g>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="5" stroke-dasharray="none" d="M 1872,5256 L 1800,5328 L 1872,5400 L 2160,5400 L 2232,5328 L 2160,5256 Z"/>
<text x="2016" y="5277" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2016" dy="72" unicode-bidi="embed">flag</tspan>
</text>
</g>
<text x="2340" y="5205" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2340" dy="72" unicode-bidi="embed">True</tspan>
</text>
<text x="1890" y="5421" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1890" dy="72" unicode-bidi="embed">False</tspan>
</text>
</g>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 1116,4464 L 1044,4536 L 1116,4608 L 1764,4608 L 1836,4536 L 1764,4464 Z"/>
<text x="1440" y="4485" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1440" dy="72" unicode-bidi="embed">book-&gt;next==NULL</tspan>
</text>
</g>
<text x="1944" y="4413" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1944" dy="72" unicode-bidi="embed">True</tspan>
</text>
<text x="1314" y="4629" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1314" dy="72" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 1044,10044 L 972,10188 L 1836,10188 L 1908,10044 Z"/>
<text x="1440" y="10065" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1440" dy="72" unicode-bidi="embed">Output book=book-&gt;next</tspan>
</text>
</g>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="5" stroke-dasharray="none" d="M 612,4212 L 540,4284 L 612,4356 L 900,4356 L 972,4284 L 900,4212 Z"/>
<text x="756" y="4233" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">1</tspan>
</text>
</g>
<text x="1080" y="4161" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1080" dy="72" unicode-bidi="embed">True</tspan>
</text>
<text x="630" y="4377" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="630" dy="72" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 288,10440 L 144,10728 L 1224,10728 L 1368,10440 Z"/>
<text x="756" y="10461" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">Output printf(&quot;&#25353;&#20219;&#24847;&#38190;&#36820;&#22238;\</tspan>
<tspan x="756" dy="72" unicode-bidi="embed">n&quot;);&#13;</tspan>
<tspan x="756" dy="72" unicode-bidi="embed">&#9;getchar();</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 20 KiB

@ -0,0 +1,183 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="5724" height="5472">
<rect x="0" y="0" width="5724" height="5472" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,288 756,375"/>
<polygon fill="#404040" stroke="none" points="756,396 776,361 735,361"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,5076 756,5163"/>
<polygon fill="#404040" stroke="none" points="756,5184 776,5149 735,5149"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 612,144 A 72 72, 0, 0 0, 612 288 L 900,288 A 72 72, 0, 0 0, 900 144 Z"/>
<text x="756" y="165" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">begin</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 432,5184 A 72 72, 0, 0 0, 432 5328 L 1080,5328 A 72 72, 0, 0 0, 1080 5184 Z"/>
<text x="756" y="5205" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">Return Integer book1</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,540 756,627"/>
<polygon fill="#404040" stroke="none" points="756,648 776,613 735,613"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,792 756,879"/>
<polygon fill="#404040" stroke="none" points="756,900 776,865 735,865"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,1116 756,1203"/>
<polygon fill="#404040" stroke="none" points="756,1224 776,1189 735,1189"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,1404 756,1491"/>
<polygon fill="#404040" stroke="none" points="756,1512 776,1477 735,1477"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,1656 756,1779"/>
<polygon fill="#404040" stroke="none" points="756,1800 776,1765 735,1765"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,1944 756,4551"/>
<polygon fill="#404040" stroke="none" points="756,4572 776,4537 735,4537"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 432,396 L 432,540 L 1080,540 L 1080,396 Z"/>
<text x="756" y="417" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">Book*book = book1</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 432,648 L 432,792 L 1080,792 L 1080,648 Z"/>
<text x="756" y="669" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">Book*pre = book1</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 324,900 L 216,1116 L 1188,1116 L 1296,900 Z"/>
<text x="756" y="921" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">Output printf</tspan>
<tspan x="756" dy="72" unicode-bidi="embed">(&quot;&#36755;&#20837;&#35201;&#22788;&#29702;&#26087;&#20070;&#30340;&#32534;&#21495;:&quot;);</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" d="M 540,1224 L 540,1404 L 972,1404 L 972,1224 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" points="540,1260 972,1260"/>
<polyline fill="none" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" points="576,1224 576,1404"/>
<text x="774" y="1281" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="774" dy="72" unicode-bidi="embed">Integer id</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="5" stroke-dasharray="none" d="M 612,1512 L 540,1656 L 900,1656 L 972,1512 Z"/>
<text x="756" y="1533" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">Input id</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1080,1872 2088,1872 2088,1995"/>
<polygon fill="#404040" stroke="none" points="2088,2016 2108,1981 2067,1981"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2088,4320 2088,4428 828,4428 828,1964"/>
<polygon fill="#404040" stroke="none" points="828,1944 807,1978 848,1978"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2412,2196 4212,2196 4212,2427"/>
<polygon fill="#404040" stroke="none" points="4212,2448 4232,2413 4191,2413"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="4212,4140 4212,4284 2144,4284"/>
<polygon fill="#404040" stroke="none" points="2124,4284 2158,4304 2158,4263"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1764,2196 1476,2196 1476,2427"/>
<polygon fill="#404040" stroke="none" points="1476,2448 1496,2413 1455,2413"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1476,2736 1476,4284 2031,4284"/>
<polygon fill="#404040" stroke="none" points="2052,4284 2017,4263 2017,4304"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 2088,2016 L 1728,2196 L 2088,2376 L 2448,2196 Z"/>
<text x="2088" y="2145" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2088" dy="72" unicode-bidi="embed">id==book-&gt;iNUm</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="4500,2628 4932,2628 4932,2859"/>
<polygon fill="#404040" stroke="none" points="4932,2880 4952,2845 4911,2845"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="4932,3312 4932,4104 4268,4104"/>
<polygon fill="#404040" stroke="none" points="4248,4104 4282,4124 4282,4083"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="3924,2628 3168,2628 3168,2859"/>
<polygon fill="#404040" stroke="none" points="3168,2880 3188,2845 3147,2845"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="3168,3960 3168,4104 4155,4104"/>
<polygon fill="#404040" stroke="none" points="4176,4104 4141,4083 4141,4124"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="5" stroke-dasharray="none" d="M 4212,2448 L 3888,2628 L 4212,2808 L 4536,2628 Z"/>
<text x="4212" y="2577" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4212" dy="72" unicode-bidi="embed">book1==book</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 4500,2880 L 4284,3312 L 5364,3312 L 5580,2880 Z"/>
<text x="4932" y="2901" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4932" dy="72" unicode-bidi="embed">Output book = book-&gt;next</tspan>
<tspan x="4932" dy="72" unicode-bidi="embed">;&#13;</tspan>
<tspan x="4932" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;free</tspan>
<tspan x="4932" dy="72" unicode-bidi="embed">(prev);&#13;</tspan>
<tspan x="4932" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;return book;</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 2736,2880 L 2196,3960 L 3600,3960 L 4140,2880 Z"/>
<text x="3168" y="2901" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3168" dy="72" unicode-bidi="embed">Output prev-&gt;next = book-&gt;</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">next</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">;&#13;</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">&#9;&#9;&#9;free(book); //</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed"> free</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">():&#37322;&#25918;&#36164;&#28304;&#13;</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">&#9;&#9;&#9;printf</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">(&quot;&#24050;&#23558;&#26087;&#20070;&#22788;&#29702;&#25481;!\</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">n&quot;);&#13;</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">&#9;&#9;&#9;printf(&quot;&#25353;&#20219;&#24847;&#38190;&#36820;&#22238;\</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">n&quot;);&#13;</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">&#9;&#9;&#9;getchar</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">();&#13;</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">&#9;&#9;&#9;return book1;</tspan>
</text>
</g>
<ellipse cx="4212" cy="4104" rx="36" ry="36" fill="#FFD0D0" stroke="#A07070" stroke-width="5"/>
<text x="4644" y="2505" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4644" dy="72" unicode-bidi="embed">True</tspan>
</text>
<text x="3762" y="2505" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3762" dy="72" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 1152,2448 L 1008,2736 L 1800,2736 L 1944,2448 Z"/>
<text x="1476" y="2469" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1476" dy="72" unicode-bidi="embed">Output prev = book</tspan>
<tspan x="1476" dy="72" unicode-bidi="embed">;&#13;</tspan>
<tspan x="1476" dy="72" unicode-bidi="embed">&#9;&#9;book = book-&gt;next;</tspan>
</text>
</g>
<ellipse cx="2088" cy="4284" rx="36" ry="36" fill="#C04040" stroke="#602020" stroke-width="5"/>
<text x="2556" y="2073" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2556" dy="72" unicode-bidi="embed">True</tspan>
</text>
<text x="1602" y="2073" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1602" dy="72" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="5" stroke-dasharray="none" d="M 504,1800 L 432,1872 L 504,1944 L 1008,1944 L 1080,1872 L 1008,1800 Z"/>
<text x="756" y="1821" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">book!=NULL</tspan>
</text>
</g>
<text x="1188" y="1749" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1188" dy="72" unicode-bidi="embed">True</tspan>
</text>
<text x="630" y="1965" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="630" dy="72" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 396,4572 L 144,5076 L 1116,5076 L 1368,4572 Z"/>
<text x="756" y="4593" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">Output printf</tspan>
<tspan x="756" dy="72" unicode-bidi="embed">(&quot;&#27809;&#26377;&#25214;&#21040;&#35813;&#22270;&#20070;\</tspan>
<tspan x="756" dy="72" unicode-bidi="embed">n&quot;);&#13;</tspan>
<tspan x="756" dy="72" unicode-bidi="embed">&#9;printf(&quot;&#25353;&#20219;&#24847;&#38190;&#36820;&#22238;\</tspan>
<tspan x="756" dy="72" unicode-bidi="embed">n&quot;);&#13;</tspan>
<tspan x="756" dy="72" unicode-bidi="embed">&#9;getchar();</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 13 KiB

@ -0,0 +1,145 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="3504" height="5376">
<rect x="0" y="0" width="3504" height="5376" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="864,384 864,501"/>
<polygon fill="#404040" stroke="none" points="864,528 890,481 837,481"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="864,4848 864,4965"/>
<polygon fill="#404040" stroke="none" points="864,4992 890,4945 837,4945"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="6" stroke-dasharray="none" d="M 624,192 A 96 96, 0, 0 0, 624 384 L 1104,384 A 96 96, 0, 0 0, 1104 192 Z"/>
<text x="864" y="220" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="864" dy="96" unicode-bidi="embed">foundbook</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="6" stroke-dasharray="none" d="M 672,4992 A 96 96, 0, 0 0, 672 5184 L 1056,5184 A 96 96, 0, 0 0, 1056 4992 Z"/>
<text x="864" y="5020" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="864" dy="96" unicode-bidi="embed">End</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="864,768 864,885"/>
<polygon fill="#404040" stroke="none" points="864,912 890,865 837,865"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="864,1152 864,1269"/>
<polygon fill="#404040" stroke="none" points="864,1296 890,1249 837,1249"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="864,1488 864,1605"/>
<polygon fill="#404040" stroke="none" points="864,1632 890,1585 837,1585"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="864,1824 864,1989"/>
<polygon fill="#404040" stroke="none" points="864,2016 890,1969 837,1969"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="864,2208 864,4293"/>
<polygon fill="#404040" stroke="none" points="864,4320 890,4273 837,4273"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="864,4512 864,4629"/>
<polygon fill="#404040" stroke="none" points="864,4656 890,4609 837,4609"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" d="M 528,528 L 528,768 L 1200,768 L 1200,528 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="528,576 1200,576"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="576,528 576,768"/>
<text x="888" y="604" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="888" dy="96" unicode-bidi="embed">String book1</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" d="M 576,912 L 576,1152 L 1152,1152 L 1152,912 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="576,960 1152,960"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="624,912 624,1152"/>
<text x="888" y="988" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="888" dy="96" unicode-bidi="embed">Integer id</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 672,1296 L 576,1488 L 1056,1488 L 1152,1296 Z"/>
<text x="864" y="1324" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="864" dy="96" unicode-bidi="embed">Input id</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 576,1632 L 480,1824 L 1152,1824 L 1248,1632 Z"/>
<text x="864" y="1660" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="864" dy="96" unicode-bidi="embed">Input book1</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1296,2112 2016,2112 2016,2277"/>
<polygon fill="#404040" stroke="none" points="2016,2304 2042,2257 1989,2257"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2016,3984 2016,4128 960,4128 960,2234"/>
<polygon fill="#404040" stroke="none" points="960,2208 933,2254 986,2254"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2016,3648 2016,3765"/>
<polygon fill="#404040" stroke="none" points="2016,3792 2042,3745 1989,3745"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2448,2544 2784,2544 2784,2853"/>
<polygon fill="#404040" stroke="none" points="2784,2880 2810,2833 2757,2833"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2784,3408 2784,3600 2090,3600"/>
<polygon fill="#404040" stroke="none" points="2064,3600 2110,3626 2110,3573"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1584,2544 1200,2544 1200,3600 1941,3600"/>
<polygon fill="#404040" stroke="none" points="1968,3600 1921,3573 1921,3626"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 2016,2304 L 1536,2544 L 2016,2784 L 2496,2544 Z"/>
<text x="2016" y="2476" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2016" dy="96" unicode-bidi="embed">id==book-&gt;iNum</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2784,3072 2784,3189"/>
<polygon fill="#404040" stroke="none" points="2784,3216 2810,3169 2757,3169"/>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 2352,2880 L 2256,3072 L 3216,3072 L 3312,2880 Z"/>
<text x="2784" y="2908" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2784" dy="96" unicode-bidi="embed">Output &#35813;&#20070;&#30340;&#20449;&#24687;</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 2496,3216 L 2400,3408 L 3072,3408 L 3168,3216 Z"/>
<text x="2784" y="3244" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2784" dy="96" unicode-bidi="embed">Input book</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="2016" cy="3600" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="2640" y="2380" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2640" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="1368" y="2380" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1368" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 1488,3792 L 1392,3984 L 2544,3984 L 2640,3792 Z"/>
<text x="2016" y="3820" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2016" dy="96" unicode-bidi="embed">Output book=book-&gt;next</tspan>
</text>
</g>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 528,2016 L 432,2112 L 528,2208 L 1200,2208 L 1296,2112 L 1200,2016 Z"/>
<text x="864" y="2044" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="864" dy="96" unicode-bidi="embed">book&#65281;=NULL</tspan>
</text>
</g>
<text x="1440" y="1948" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1440" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="696" y="2236" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="696" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 384,4320 L 288,4512 L 1344,4512 L 1440,4320 Z"/>
<text x="864" y="4348" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="864" dy="96" unicode-bidi="embed">Output &#27809;&#26377;&#25214;&#21040;&#35813;&#20070;</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 288,4656 L 192,4848 L 1440,4848 L 1536,4656 Z"/>
<text x="864" y="4684" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="864" dy="96" unicode-bidi="embed">Input &#38656;&#35201;&#26597;&#25214;&#30340;&#19979;&#19968;&#26412;&#20070;</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.4 KiB

@ -0,0 +1,193 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="6432" height="7008">
<rect x="0" y="0" width="6432" height="7008" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="720,384 720,501"/>
<polygon fill="#404040" stroke="none" points="720,528 746,481 693,481"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="720,6480 720,6597"/>
<polygon fill="#404040" stroke="none" points="720,6624 746,6577 693,6577"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="6" stroke-dasharray="none" d="M 384,192 A 96 96, 0, 0 0, 384 384 L 1056,384 A 96 96, 0, 0 0, 1056 192 Z"/>
<text x="720" y="220" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="720" dy="96" unicode-bidi="embed">foundreaderinfo</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="6" stroke-dasharray="none" d="M 528,6624 A 96 96, 0, 0 0, 528 6816 L 912,6816 A 96 96, 0, 0 0, 912 6624 Z"/>
<text x="720" y="6652" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="720" dy="96" unicode-bidi="embed">End</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="720,768 720,885"/>
<polygon fill="#404040" stroke="none" points="720,912 746,865 693,865"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="720,1152 720,1269"/>
<polygon fill="#404040" stroke="none" points="720,1296 746,1249 693,1249"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="720,1488 720,1605"/>
<polygon fill="#404040" stroke="none" points="720,1632 746,1585 693,1585"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="720,1824 720,1989"/>
<polygon fill="#404040" stroke="none" points="720,2016 746,1969 693,1969"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="720,2208 720,5925"/>
<polygon fill="#404040" stroke="none" points="720,5952 746,5905 693,5905"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="720,6144 720,6261"/>
<polygon fill="#404040" stroke="none" points="720,6288 746,6241 693,6241"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" d="M 336,528 L 336,768 L 1104,768 L 1104,528 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="336,576 1104,576"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="384,528 384,768"/>
<text x="744" y="604" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="744" dy="96" unicode-bidi="embed">String reader1</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" d="M 432,912 L 432,1152 L 1008,1152 L 1008,912 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="432,960 1008,960"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="480,912 480,1152"/>
<text x="744" y="988" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="744" dy="96" unicode-bidi="embed">Integer id</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 528,1296 L 432,1488 L 912,1488 L 1008,1296 Z"/>
<text x="720" y="1324" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="720" dy="96" unicode-bidi="embed">Input id</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 432,1632 L 336,1824 L 1008,1824 L 1104,1632 Z"/>
<text x="720" y="1660" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="720" dy="96" unicode-bidi="embed">Input reader</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1008,2112 2592,2112 2592,2277"/>
<polygon fill="#404040" stroke="none" points="2592,2304 2618,2257 2565,2257"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2592,5616 2592,5760 816,5760 816,2234"/>
<polygon fill="#404040" stroke="none" points="816,2208 789,2254 842,2254"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3072,2592 3408,2592 3408,2949"/>
<polygon fill="#404040" stroke="none" points="3408,2976 3434,2929 3381,2929"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3408,3552 3408,5568 2666,5568"/>
<polygon fill="#404040" stroke="none" points="2640,5568 2686,5594 2686,5541"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2112,2592 1728,2592 1728,2949"/>
<polygon fill="#404040" stroke="none" points="1728,2976 1754,2929 1701,2929"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1728,3264 1728,5568 2517,5568"/>
<polygon fill="#404040" stroke="none" points="2544,5568 2497,5541 2497,5594"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 2592,2304 L 2064,2592 L 2592,2880 L 3120,2592 Z"/>
<text x="2592" y="2524" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2592" dy="96" unicode-bidi="embed">id==reader-&gt;iNum</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3408,3168 3408,3333"/>
<polygon fill="#404040" stroke="none" points="3408,3360 3434,3313 3381,3313"/>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 2880,2976 L 2784,3168 L 3936,3168 L 4032,2976 Z"/>
<text x="3408" y="3004" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3408" dy="96" unicode-bidi="embed">Output &#35835;&#32773;&#20511;&#38405;&#30340;&#32534;&#21495;</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3984,3456 4704,3456 4704,3621"/>
<polygon fill="#404040" stroke="none" points="4704,3648 4730,3601 4677,3601"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4704,5184 4704,5328 3504,5328 3504,3578"/>
<polygon fill="#404040" stroke="none" points="3504,3552 3477,3598 3530,3598"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4704,4848 4704,4965"/>
<polygon fill="#404040" stroke="none" points="4704,4992 4730,4945 4677,4945"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="5280,3984 5616,3984 5616,4389"/>
<polygon fill="#404040" stroke="none" points="5616,4416 5642,4369 5589,4369"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="5616,4608 5616,4800 4778,4800"/>
<polygon fill="#404040" stroke="none" points="4752,4800 4798,4826 4798,4773"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4128,3984 3744,3984 3744,4800 4629,4800"/>
<polygon fill="#404040" stroke="none" points="4656,4800 4609,4773 4609,4826"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 4704,3648 L 4080,3984 L 4704,4320 L 5328,3984 Z"/>
<text x="4704" y="3916" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4704" dy="96" unicode-bidi="embed">reader-&gt;aiBookId[i] != 0</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 5088,4416 L 4992,4608 L 6144,4608 L 6240,4416 Z"/>
<text x="5616" y="4444" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5616" dy="96" unicode-bidi="embed">Output &#35835;&#32773;&#30340;&#20511;&#38405;&#32534;&#21495;</tspan>
</text>
</g>
<g>
</g>
<ellipse cx="4704" cy="4800" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="5472" y="3820" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5472" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="3912" y="3820" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3912" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 4320,4992 L 4224,5184 L 5088,5184 L 5184,4992 Z"/>
<text x="4704" y="5020" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4704" dy="96" unicode-bidi="embed">Input nextreader</tspan>
</text>
</g>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 2928,3360 L 2832,3456 L 2928,3552 L 3888,3552 L 3984,3456 L 3888,3360 Z"/>
<text x="3408" y="3388" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3408" dy="96" unicode-bidi="embed">i = 0 to reader-&gt;iMax</tspan>
</text>
</g>
<text x="4128" y="3292" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4128" dy="96" unicode-bidi="embed">Next</tspan>
</text>
<text x="3240" y="3580" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3240" dy="96" unicode-bidi="embed">Done</tspan>
</text>
</g>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 1200,2976 L 1056,3264 L 2256,3264 L 2400,2976 Z"/>
<text x="1728" y="3004" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1728" dy="96" unicode-bidi="embed">Output reader = reader-&gt;</tspan>
<tspan x="1728" dy="96" unicode-bidi="embed">next</tspan>
</text>
</g>
<ellipse cx="2592" cy="5568" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="3264" y="2428" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3264" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="1896" y="2428" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1896" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="6" stroke-dasharray="none" d="M 528,2016 L 432,2112 L 528,2208 L 912,2208 L 1008,2112 L 912,2016 Z"/>
<text x="720" y="2044" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="720" dy="96" unicode-bidi="embed">reader</tspan>
</text>
</g>
<text x="1152" y="1948" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1152" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="552" y="2236" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="552" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 288,5952 L 192,6144 L 1152,6144 L 1248,5952 Z"/>
<text x="720" y="5980" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="720" dy="96" unicode-bidi="embed">Output &#27809;&#26377;&#35813;&#35835;&#32773;</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 336,6288 L 240,6480 L 1104,6480 L 1200,6288 Z"/>
<text x="720" y="6316" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="720" dy="96" unicode-bidi="embed">Input nextreader</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 13 KiB

@ -0,0 +1,296 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="5832" height="8208">
<rect x="0" y="0" width="5832" height="8208" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="648,288 648,375"/>
<polygon fill="#404040" stroke="none" points="648,396 668,361 627,361"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="648,7812 648,7899"/>
<polygon fill="#404040" stroke="none" points="648,7920 668,7885 627,7885"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 504,144 A 72 72, 0, 0 0, 504 288 L 792,288 A 72 72, 0, 0 0, 792 144 Z"/>
<text x="648" y="165" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="648" dy="72" unicode-bidi="embed">&#24320;&#22987;</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 504,7920 A 72 72, 0, 0 0, 504 8064 L 792,8064 A 72 72, 0, 0 0, 792 7920 Z"/>
<text x="648" y="7941" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="648" dy="72" unicode-bidi="embed">&#32467;&#26463;</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="648,540 648,627"/>
<polygon fill="#404040" stroke="none" points="648,648 668,613 627,613"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="648,792 648,879"/>
<polygon fill="#404040" stroke="none" points="648,900 668,865 627,865"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="648,1044 648,1131"/>
<polygon fill="#404040" stroke="none" points="648,1152 668,1117 627,1117"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="648,1296 648,1383"/>
<polygon fill="#404040" stroke="none" points="648,1404 668,1369 627,1369"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="648,7056 648,7143"/>
<polygon fill="#404040" stroke="none" points="648,7164 668,7129 627,7129"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="648,7308 648,7395"/>
<polygon fill="#404040" stroke="none" points="648,7416 668,7381 627,7381"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="648,7560 648,7647"/>
<polygon fill="#404040" stroke="none" points="648,7668 668,7633 627,7633"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" d="M 216,396 L 216,540 L 1080,540 L 1080,396 Z"/>
<text x="648" y="417" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="648" dy="72" unicode-bidi="embed">reader1 = Reader* reader</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" d="M 288,648 L 288,792 L 1008,792 L 1008,648 Z"/>
<text x="648" y="669" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="648" dy="72" unicode-bidi="embed">book1 = Book* book</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="5" stroke-dasharray="none" d="M 504,900 L 432,1044 L 792,1044 L 864,900 Z"/>
<text x="648" y="921" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="648" dy="72" unicode-bidi="embed">&#36755;&#20837; id</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 432,1152 L 432,1296 L 864,1296 L 864,1152 Z"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="468,1152 468,1296"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="828,1152 828,1296"/>
<text x="648" y="1173" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="648" dy="72" unicode-bidi="embed">getchar()</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="936,1584 1116,1584 1116,1851"/>
<polygon fill="#404040" stroke="none" points="1116,1872 1136,1837 1095,1837"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1116,2016 1116,7020 704,7020"/>
<polygon fill="#404040" stroke="none" points="684,7020 718,7040 718,6999"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="360,1584 180,1584 180,7020 591,7020"/>
<polygon fill="#404040" stroke="none" points="612,7020 577,6999 577,7040"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="5" stroke-dasharray="none" d="M 648,1404 L 324,1584 L 648,1764 L 972,1584 Z"/>
<text x="648" y="1533" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="648" dy="72" unicode-bidi="embed">reader!=NULL</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1440,1944 1908,1944 1908,2067"/>
<polygon fill="#404040" stroke="none" points="1908,2088 1928,2053 1887,2053"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1908,6732 1908,6840 1188,6840 1188,2036"/>
<polygon fill="#404040" stroke="none" points="1188,2016 1167,2050 1208,2050"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2268,2304 2448,2304 2448,2571"/>
<polygon fill="#404040" stroke="none" points="2448,2592 2468,2557 2427,2557"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2448,6552 2448,6696 1964,6696"/>
<polygon fill="#404040" stroke="none" points="1944,6696 1978,6716 1978,6675"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1548,2304 1368,2304 1368,6696 1851,6696"/>
<polygon fill="#404040" stroke="none" points="1872,6696 1837,6675 1837,6716"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 1908,2088 L 1512,2304 L 1908,2520 L 2304,2304 Z"/>
<text x="1908" y="2253" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1908" dy="72" unicode-bidi="embed">reader-&gt;iNum == id</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2448,2736 2448,2823"/>
<polygon fill="#404040" stroke="none" points="2448,2844 2468,2809 2427,2809"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2448,2988 2448,3111"/>
<polygon fill="#404040" stroke="none" points="2448,3132 2468,3097 2427,3097"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2448,3276 2448,6135"/>
<polygon fill="#404040" stroke="none" points="2448,6156 2468,6121 2427,6121"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2448,6300 2448,6387"/>
<polygon fill="#404040" stroke="none" points="2448,6408 2468,6373 2427,6373"/>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="5" stroke-dasharray="none" d="M 2232,2592 L 2160,2736 L 2664,2736 L 2736,2592 Z"/>
<text x="2448" y="2613" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2448" dy="72" unicode-bidi="embed">&#36755;&#20837; idbook</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 2232,2844 L 2232,2988 L 2664,2988 L 2664,2844 Z"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="2268,2844 2268,2988"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="2628,2844 2628,2988"/>
<text x="2448" y="2865" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2448" dy="72" unicode-bidi="embed">getchar()</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2844,3204 3348,3204 3348,3327"/>
<polygon fill="#404040" stroke="none" points="3348,3348 3368,3313 3327,3313"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="3348,5904 3348,6012 2520,6012 2520,3296"/>
<polygon fill="#404040" stroke="none" points="2520,3276 2499,3310 2540,3310"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="3816,3600 3996,3600 3996,3903"/>
<polygon fill="#404040" stroke="none" points="3996,3924 4016,3889 3975,3889"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="3996,5724 3996,5868 3404,5868"/>
<polygon fill="#404040" stroke="none" points="3384,5868 3418,5888 3418,5847"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2880,3600 2700,3600 2700,5868 3291,5868"/>
<polygon fill="#404040" stroke="none" points="3312,5868 3277,5847 3277,5888"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="5" stroke-dasharray="none" d="M 3348,3348 L 2844,3600 L 3348,3852 L 3852,3600 Z"/>
<text x="3348" y="3549" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3348" dy="72" unicode-bidi="embed">reader*aiBookId[i]==idbook</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="3996,4068 3996,4191"/>
<polygon fill="#404040" stroke="none" points="3996,4212 4016,4177 3975,4177"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="3996,4356 3996,5559"/>
<polygon fill="#404040" stroke="none" points="3996,5580 4016,5545 3975,5545"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 3600,3924 L 3600,4068 L 4392,4068 L 4392,3924 Z"/>
<text x="3996" y="3945" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3996" dy="72" unicode-bidi="embed">reader-&gt;aiBookId[i] = 0</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="4284,4284 4860,4284 4860,4407"/>
<polygon fill="#404040" stroke="none" points="4860,4428 4880,4393 4839,4393"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="4860,5328 4860,5436 4068,5436 4068,4376"/>
<polygon fill="#404040" stroke="none" points="4068,4356 4047,4390 4088,4390"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="5292,4680 5472,4680 5472,4983"/>
<polygon fill="#404040" stroke="none" points="5472,5004 5492,4969 5451,4969"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="5472,5148 5472,5292 4916,5292"/>
<polygon fill="#404040" stroke="none" points="4896,5292 4930,5312 4930,5271"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="4428,4680 4248,4680 4248,5292 4803,5292"/>
<polygon fill="#404040" stroke="none" points="4824,5292 4789,5271 4789,5312"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 4860,4428 L 4392,4680 L 4860,4932 L 5328,4680 Z"/>
<text x="4860" y="4629" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4860" dy="72" unicode-bidi="embed">id_book==book-&gt;iNum</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 5256,5004 L 5256,5148 L 5688,5148 L 5688,5004 Z"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="5292,5004 5292,5148"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="5652,5004 5652,5148"/>
<text x="5472" y="5025" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5472" dy="72" unicode-bidi="embed">getchar()</tspan>
</text>
</g>
<g>
</g>
<ellipse cx="4860" cy="5292" rx="36" ry="36" fill="#C04040" stroke="#602020" stroke-width="5"/>
<text x="5400" y="4557" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5400" dy="72" unicode-bidi="embed">&#30495;</tspan>
</text>
<text x="4320" y="4557" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4320" dy="72" unicode-bidi="embed">&#20551;</tspan>
</text>
</g>
<g>
<path fill="#E0E0E0" stroke="#505050" stroke-width="5" stroke-dasharray="none" d="M 3780,4212 L 3708,4284 L 3780,4356 L 4212,4356 L 4284,4284 L 4212,4212 Z"/>
<text x="3996" y="4233" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3996" dy="72" unicode-bidi="embed">While&#24490;&#29615;</tspan>
</text>
</g>
<text x="4356" y="4161" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4356" dy="72" unicode-bidi="embed">&#30495;</tspan>
</text>
<text x="3924" y="4377" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3924" dy="72" unicode-bidi="embed">&#20551;</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 3672,5580 L 3672,5724 L 4320,5724 L 4320,5580 Z"/>
<text x="3996" y="5601" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3996" dy="72" unicode-bidi="embed">book = book-&gt;next</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="3348" cy="5868" rx="36" ry="36" fill="#FFD0D0" stroke="#A07070" stroke-width="5"/>
<text x="3924" y="3477" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3924" dy="72" unicode-bidi="embed">&#30495;</tspan>
</text>
<text x="2772" y="3477" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2772" dy="72" unicode-bidi="embed">&#20551;</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="5" stroke-dasharray="none" d="M 2124,3132 L 2052,3204 L 2124,3276 L 2772,3276 L 2844,3204 L 2772,3132 Z"/>
<text x="2448" y="3153" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2448" dy="72" unicode-bidi="embed">i = 0 &#21040; reader*iMax</tspan>
</text>
</g>
<text x="2988" y="3081" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2988" dy="72" unicode-bidi="embed">&#19979;&#19968;&#20010;</tspan>
</text>
<text x="2340" y="3297" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2340" dy="72" unicode-bidi="embed">&#23436;&#25104;</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 2232,6156 L 2232,6300 L 2664,6300 L 2664,6156 Z"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="2268,6156 2268,6300"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="2628,6156 2628,6300"/>
<text x="2448" y="6177" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2448" dy="72" unicode-bidi="embed">getchar()</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 2088,6408 L 2088,6552 L 2808,6552 L 2808,6408 Z"/>
<text x="2448" y="6429" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2448" dy="72" unicode-bidi="embed">reader = reader-&gt;next</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="1908" cy="6696" rx="36" ry="36" fill="#C04040" stroke="#602020" stroke-width="5"/>
<text x="2376" y="2181" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2376" dy="72" unicode-bidi="embed">&#30495;</tspan>
</text>
<text x="1440" y="2181" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1440" dy="72" unicode-bidi="embed">&#20551;</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="5" stroke-dasharray="none" d="M 864,1872 L 792,1944 L 864,2016 L 1368,2016 L 1440,1944 L 1368,1872 Z"/>
<text x="1116" y="1893" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1116" dy="72" unicode-bidi="embed">reader!=NULL</tspan>
</text>
</g>
<text x="1512" y="1821" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1512" dy="72" unicode-bidi="embed">&#30495;</tspan>
</text>
<text x="1044" y="2037" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1044" dy="72" unicode-bidi="embed">&#20551;</tspan>
</text>
</g>
<g>
</g>
<ellipse cx="648" cy="7020" rx="36" ry="36" fill="#FFD0D0" stroke="#A07070" stroke-width="5"/>
<text x="1044" y="1461" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1044" dy="72" unicode-bidi="embed">&#30495;</tspan>
</text>
<text x="252" y="1461" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="252" dy="72" unicode-bidi="embed">&#20551;</tspan>
</text>
</g>
<g>
<path fill="#E0E0E0" stroke="#505050" stroke-width="5" stroke-dasharray="none" d="M 504,7164 L 432,7308 L 792,7308 L 864,7164 Z"/>
<text x="648" y="7185" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="648" dy="72" unicode-bidi="embed">&#36755;&#20986;</tspan>
</text>
</g>
<g>
<path fill="#E0E0E0" stroke="#505050" stroke-width="5" stroke-dasharray="none" d="M 504,7416 L 432,7560 L 792,7560 L 864,7416 Z"/>
<text x="648" y="7437" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="648" dy="72" unicode-bidi="embed">&#36755;&#20986;</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 432,7668 L 432,7812 L 864,7812 L 864,7668 Z"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="468,7668 468,7812"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="828,7668 828,7812"/>
<text x="648" y="7689" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="648" dy="72" unicode-bidi="embed">getchar()</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 20 KiB

@ -0,0 +1,192 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="2196" height="5436">
<rect x="0" y="0" width="2196" height="5436" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="828,288 828,375"/>
<polygon fill="#404040" stroke="none" points="828,396 848,361 807,361"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="828,5040 828,5127"/>
<polygon fill="#404040" stroke="none" points="828,5148 848,5113 807,5113"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 684,144 A 72 72, 0, 0 0, 684 288 L 972,288 A 72 72, 0, 0 0, 972 144 Z"/>
<text x="828" y="165" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="828" dy="72" unicode-bidi="embed">&#24320;&#22987;</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 684,5148 A 72 72, 0, 0 0, 684 5292 L 972,5292 A 72 72, 0, 0 0, 972 5148 Z"/>
<text x="828" y="5169" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="828" dy="72" unicode-bidi="embed">&#32467;&#26463;</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="828,540 828,627"/>
<polygon fill="#404040" stroke="none" points="828,648 848,613 807,613"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="828,792 828,879"/>
<polygon fill="#404040" stroke="none" points="828,900 848,865 807,865"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="828,1656 828,1743"/>
<polygon fill="#404040" stroke="none" points="828,1764 848,1729 807,1729"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="828,3168 828,3291"/>
<polygon fill="#404040" stroke="none" points="828,3312 848,3277 807,3277"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="828,3456 828,4227"/>
<polygon fill="#404040" stroke="none" points="828,4248 848,4213 807,4213"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="828,4392 828,4479"/>
<polygon fill="#404040" stroke="none" points="828,4500 848,4465 807,4465"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="828,4788 828,4875"/>
<polygon fill="#404040" stroke="none" points="828,4896 848,4861 807,4861"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 468,396 L 468,540 L 1188,540 L 1188,396 Z"/>
<text x="828" y="417" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="828" dy="72" unicode-bidi="embed">Book* pCur = book1</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" d="M 612,648 L 612,792 L 1044,792 L 1044,648 Z"/>
<text x="828" y="669" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="828" dy="72" unicode-bidi="embed">iCount = 0</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1116,1080 1404,1080 1404,1311"/>
<polygon fill="#404040" stroke="none" points="1404,1332 1424,1297 1383,1297"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1404,1476 1404,1620 884,1620"/>
<polygon fill="#404040" stroke="none" points="864,1620 898,1640 898,1599"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="540,1080 360,1080 360,1620 771,1620"/>
<polygon fill="#404040" stroke="none" points="792,1620 757,1599 757,1640"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="5" stroke-dasharray="none" d="M 828,900 L 504,1080 L 828,1260 L 1152,1080 Z"/>
<text x="828" y="1029" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="828" dy="72" unicode-bidi="embed">pCur == NULL</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="5" stroke-dasharray="none" d="M 972,1332 L 900,1476 L 1836,1476 L 1908,1332 Z"/>
<text x="1404" y="1353" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1404" dy="72" unicode-bidi="embed">&#36755;&#20986; (&quot;\n &#27809;&#26377;&#23398;&#29983;&#35760;&#24405;!\n&quot;)</tspan>
</text>
</g>
<g>
</g>
<ellipse cx="828" cy="1620" rx="36" ry="36" fill="#FFD0D0" stroke="#A07070" stroke-width="5"/>
<text x="1224" y="957" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1224" dy="72" unicode-bidi="embed">&#30495;</tspan>
</text>
<text x="432" y="957" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="432" dy="72" unicode-bidi="embed">&#20551;</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1296,2016 1476,2016 1476,2319"/>
<polygon fill="#404040" stroke="none" points="1476,2340 1496,2305 1455,2305"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1476,2988 1476,3132 884,3132"/>
<polygon fill="#404040" stroke="none" points="864,3132 898,3152 898,3111"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="360,2016 180,2016 180,3132 771,3132"/>
<polygon fill="#404040" stroke="none" points="792,3132 757,3111 757,3152"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="5" stroke-dasharray="none" d="M 828,1764 L 324,2016 L 828,2268 L 1332,2016 Z"/>
<text x="828" y="1929" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="828" dy="72" unicode-bidi="embed">(fp = fopen(&quot;book.txt&quot;,</tspan>
<tspan x="828" dy="72" unicode-bidi="embed"> &quot;wb&quot;)) == NULL</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1476,2484 1476,2571"/>
<polygon fill="#404040" stroke="none" points="1476,2592 1496,2557 1455,2557"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1476,2736 1476,2823"/>
<polygon fill="#404040" stroke="none" points="1476,2844 1496,2809 1455,2809"/>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="5" stroke-dasharray="none" d="M 1080,2340 L 1008,2484 L 1872,2484 L 1944,2340 Z"/>
<text x="1476" y="2361" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1476" dy="72" unicode-bidi="embed">&#36755;&#20986; (&quot;&#21019;&#24314;&#25991;&#20214;&#22833;&#36133;!\n&quot;)</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 1260,2592 L 1260,2736 L 1692,2736 L 1692,2592 Z"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="1296,2592 1296,2736"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="1656,2592 1656,2736"/>
<text x="1476" y="2613" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1476" dy="72" unicode-bidi="embed">getchar()</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 1260,2844 L 1260,2988 L 1692,2988 L 1692,2844 Z"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="1296,2844 1296,2988"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="1656,2844 1656,2988"/>
<text x="1476" y="2865" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1476" dy="72" unicode-bidi="embed">exit(1)</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="828" cy="3132" rx="36" ry="36" fill="#FFD0D0" stroke="#A07070" stroke-width="5"/>
<text x="1404" y="1893" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1404" dy="72" unicode-bidi="embed">&#30495;</tspan>
</text>
<text x="252" y="1893" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="252" dy="72" unicode-bidi="embed">&#20551;</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1044,3384 1548,3384 1548,3507"/>
<polygon fill="#404040" stroke="none" points="1548,3528 1568,3493 1527,3493"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1548,3996 1548,4104 900,4104 900,3476"/>
<polygon fill="#404040" stroke="none" points="900,3456 879,3490 920,3490"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1548,3744 1548,3831"/>
<polygon fill="#404040" stroke="none" points="1548,3852 1568,3817 1527,3817"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 1044,3528 L 1044,3744 L 2052,3744 L 2052,3528 Z"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="1080,3528 1080,3744"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="2016,3528 2016,3744"/>
<text x="1548" y="3549" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1548" dy="72" unicode-bidi="embed">fwrite(pCur, sizeof(Book), 1,</tspan>
<tspan x="1548" dy="72" unicode-bidi="embed"> fp)</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 1224,3852 L 1224,3996 L 1872,3996 L 1872,3852 Z"/>
<text x="1548" y="3873" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1548" dy="72" unicode-bidi="embed">pCur = pCur-&gt;next</tspan>
</text>
</g>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="5" stroke-dasharray="none" d="M 684,3312 L 612,3384 L 684,3456 L 972,3456 L 1044,3384 L 972,3312 Z"/>
<text x="828" y="3333" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="828" dy="72" unicode-bidi="embed">pCur</tspan>
</text>
</g>
<text x="1116" y="3261" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1116" dy="72" unicode-bidi="embed">&#30495;</tspan>
</text>
<text x="756" y="3477" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">&#20551;</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="5" stroke-dasharray="none" d="M 648,4248 L 576,4392 L 1008,4392 L 1080,4248 Z"/>
<text x="828" y="4269" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="828" dy="72" unicode-bidi="embed">&#36755;&#20986; &quot;\n&quot;</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 396,4500 L 252,4788 L 1260,4788 L 1404,4500 Z"/>
<text x="828" y="4521" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="828" dy="72" unicode-bidi="embed">&#36755;&#20986;</tspan>
<tspan x="828" dy="72" unicode-bidi="embed"> (&quot;&#20445;&#23384;&#25991;&#20214;&#30340;&#25968;&#25454;&#25968;&#30446;&#20026;:%</tspan>
<tspan x="828" dy="72" unicode-bidi="embed">d\n&quot;,iCount)</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 612,4896 L 612,5040 L 1044,5040 L 1044,4896 Z"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="648,4896 648,5040"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="1008,4896 1008,5040"/>
<text x="828" y="4917" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="828" dy="72" unicode-bidi="embed">fclose(fp)</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 13 KiB

@ -0,0 +1,597 @@
<svg host="65bd71144e" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="445px" height="1775px" viewBox="-0.5 -0.5 445 1775" content="&lt;mxfile&gt;&lt;diagram id=&quot;8v04N5ooSHcXoQdtEZOl&quot; name=&quot;第 1 页&quot;&gt;7V1Lb+M2EP41PDawHnwdLdvZXgossAXaPWpjJTaqWK6sJE5/fUmJtCVrdsu1RFIpfIkl6mEO55tvOMOhg6LF8/FTme43vxXrLEfhbH1E0RKFYcSJ+Csb3psGSoOm4ancrpumVsOX7T+Zapyp1pftOjt0bqyKIq+2+27jQ7HbZQ9Vpy0ty+Kte9tjkXe/dZ8+Zb2GLw9p3m/9Y7uuNk0rC+m5/dds+7TR3xwQ3lx5TvXNSpLDJl0Xb62maIWiRVkUVXP0fFxkuRw7PS7Nc/ffuXrqWJntKpMHlCJe0/xFyab6Vb1rYbO1kF2d7oqd+Eg21XMuzgJx2P9C1YdD8VI+qFeol1Zp+ZSpu+KmSb689Zjq5KeseM6q8l3cUGZ5Wm1fuwOfKv09ne47iygOlJSwxCEgMclFr5LHQojQFp38/VLoC78cahTOxQ0B2x9ryfV1cfRUf64wShaIzeTBnCKW6FeLTjVvVzf2xjjPBXbl0L5ttlX2ZZ/WQ/cmrMdwuF+zssqOPxxKdZUo6Cnbi9Xp2xnIgUbnpgVi/diQsWdO0Bb30UZ9oS22iTaGkhXikUQboyiZoxVFXBwv0IojvkTz0BR/ZfGyW2eyzzMfGAyIQxBqJ2IZhbSPQu4LhdQmCrkkPMbRikjCm9cHApRsiVYxSpaILz4ICkPmEoWQHxofhbyPwiDwBcMAYkM3Mke+ZOYuTS8wtrRN8fzt5eDEymjXyiLIymaAleFRuN7NlEPbVAdzM2+zDt0dO6gT9H6P5ljOP+b3cpIh5h88kXMRSfgczYlEpvjLSD0jmSMW1xCdoSSp7xFPBXVLIN8wUe9witE0cCl26B7cBGaaFzu4xb5gewqKTWXMjtvqTwmIO6zOvrauLI8KK/XJuz7ZiV61HpKnX9vXzo/VZ/o5iU2ViQjYoPH1RwuRS2dkHnw4dEYEd2w6hgKPwJozcmTUGHJG3qxad2cCzoghThG7b1261hm5dz8xduh+QmgC8VNIvY4ugaA58BY1g8kbd4MwnsDq0c/Ftja34wV4FMDIJXAaLainLobt1A0zCnCagIgm6Xi6g43dZrwgx2/B8UCR9yz05nisxt4YzZeIszr5imsPJFwRQcns7F0+SGDjFIshNBuwT6r6W9rQDL0lhYYvhAwaBPueJeoAjF7OnsfzLFqk9kj2HEJ8PfMbj/PVnoCA1odteQI3ix8hEPdyfxM5wP1JtqZykfYcCwgWj+tUFUV8JuOFQURtATmXxA1DxxJxR56Im/SRFHkrHoihKYWnQfA2r4KKRnqciyfFuZjchd3Mz8kntW0nCu8sES+HIqDxeVeDosO7xBdQdG8uefdeTZcFXGSeppewmTrvgtixxbvxYI99FeVEQBVN5M2Dx4PNZ7xB8GdOQD6qx7uA9Uxnrssck+7gKYsZSgDvzL1NUSLIO/ez5PVBUheRSQDh1kotli3ifllExupL/Sz5xBkaBJo1hvYTzWs27lTVeqvtwYNXDK4WWuvag60B4UCPkemUGZk7ZmQ3iWhtBh1G9hYvxYBpGDHy9Gk3MkCTLdrFbrCkReowjjcsUTcllJDQxFu6HAMhUI9m2ZRpNphxpzyL3VSaaDvo2Ia3QhPqiBAAoYk3oXVvfmgbfNK2cfIijmzDTUkwBqqwsLfSPwrAxJHQxJvQGIj/+zXz/aLTKRlHRJ0aBxmcbTTDCVDohf1tj3ITu0JCE29CYyCl2jeOoDcQUzIOHLg1DkckCuQ4iL/EjkmOY9ocStwmOQhAJysqQ3u5V5fInbm8H8t7GCZ2R7uLogHFcX+kbAXw3A3tEqgWxVvKkEC1KP3UzykH/7010Z+ESzdTNAJ4LlM/cIRr7YcEBtdhmEEHmM4y5g060HS2Dx0ms4ayMPXDQAcMAK1Bx00lBgEme8zb0jGBJnt1vTJrKuASlOjdMMI9nYqbJw8dMDyyBh03wREB5n/UW5xAoPlfjRi2gjB0IiQsd1oB9QiTwxAYRVjD0OAY4iBwUc3lr1idLxvh6rQVo8NJ3gILauDDD5t0X8Mkfd/X1eJC/L+y6mGj4NDs1FgScVhfz8rVqxiCgxqquq3uIk4QXkp0bfN8UeRFKRrX2WP6Uu/QKDPxovRb/a2zGnNVWrXO91m5FfJl8qmHTH7N53NLctil+9+LpprdEYZjdolhwIVCEA7HgLCbNSiNzA5ava1BMYNg5YZWQ7QCPwFiDawGi0I3vcF6C6hHvRmsYN70ZmhvERCbW1OcwfLaTXGGiguBzKUtxXGD6OamOEPFBUBMYU1xBiHFTXFmiuNAPsGa3gzm0Te9memNudTb4AKSbLe+JoCnQGJo/N1d6tGLPd0xv2A4HF8MZdPT3qbu/34Tv3jReLvD+W0SOZqFUYcWFswGLw1CWbIrzY5D+3tGz8eaGQtlH8Dqbom90ayOOAy5g9ngxN6YVgc4Ows/JmRmLeTSWiZodqfB+R/anXU7w07tzGBf6gdVlAXVxMDv7tpTjUF1wAdVjXUbirg1RYnT8//Eabjx/I+FotW/&lt;/diagram&gt;&lt;/mxfile&gt;">
<defs/>
<g>
<path d="M 64 60 L 64 113.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 64 118.88 L 60.5 111.88 L 64 113.63 L 67.5 111.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<ellipse cx="64" cy="30" rx="60" ry="30" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 30px; margin-left: 5px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
<font style="font-size: 18px;">
开始
</font>
</div>
</div>
</div>
</foreignObject>
<text x="64" y="34" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
开始
</text>
</switch>
</g>
<path d="M 64 180 L 64 233.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 64 238.88 L 60.5 231.88 L 64 233.63 L 67.5 231.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="4" y="120" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 150px; margin-left: 5px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
<font style="font-size: 18px;">
输出界面
</font>
</div>
</div>
</div>
</foreignObject>
<text x="64" y="154" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
输出界面
</text>
</switch>
</g>
<path d="M 64 300 L 64 333.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 64 338.88 L 60.5 331.88 L 64 333.63 L 67.5 331.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="4" y="240" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 270px; margin-left: 5px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
<font style="font-size: 18px;">
选择操作
</font>
</div>
</div>
</div>
</foreignObject>
<text x="64" y="274" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
选择操作
</text>
</switch>
</g>
<path d="M 114 365 L 157.63 365" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 162.88 365 L 155.88 368.5 L 157.63 365 L 155.88 361.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 64 390 L 64 413.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 64 418.88 L 60.5 411.88 L 64 413.63 L 67.5 411.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 64 340 L 114 365 L 64 390 L 14 365 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 365px; margin-left: 15px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
<font style="font-size: 18px;">
选择1
</font>
</div>
</div>
</div>
</foreignObject>
<text x="64" y="369" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
选择1
</text>
</switch>
</g>
<path d="M 284 365 L 427.63 365" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 432.88 365 L 425.88 368.5 L 427.63 365 L 425.88 361.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="164" y="335" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 365px; margin-left: 165px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
<font style="font-size: 18px;">
查询图书馆的总信息
</font>
</div>
</div>
</div>
</foreignObject>
<text x="224" y="369" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
查询图书馆的总信息
</text>
</switch>
</g>
<path d="M 119 445 L 157.63 445" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 162.88 445 L 155.88 448.5 L 157.63 445 L 155.88 441.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 64 470 L 64 513.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 64 518.88 L 60.5 511.88 L 64 513.63 L 67.5 511.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 64 420 L 119 445 L 64 470 L 9 445 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 108px; height: 1px; padding-top: 445px; margin-left: 10px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
<font style="font-size: 18px;">
选择2
</font>
</div>
</div>
</div>
</foreignObject>
<text x="64" y="449" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
选择2
</text>
</switch>
</g>
<path d="M 284 445 L 427.63 445" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 432.88 445 L 425.88 448.5 L 427.63 445 L 425.88 441.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="164" y="415" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 445px; margin-left: 165px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
<font style="font-size: 18px;">
查询图书馆藏书信息
</font>
</div>
</div>
</div>
</foreignObject>
<text x="224" y="449" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
查询图书馆藏书信息
</text>
</switch>
</g>
<path d="M 124 550 L 157.63 550" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 162.88 550 L 155.88 553.5 L 157.63 550 L 155.88 546.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 64 580 L 64 613.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 64 618.88 L 60.5 611.88 L 64 613.63 L 67.5 611.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 64 520 L 124 550 L 64 580 L 4 550 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 550px; margin-left: 5px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
<font style="font-size: 18px;">
选择3
</font>
</div>
</div>
</div>
</foreignObject>
<text x="64" y="554" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
选择3
</text>
</switch>
</g>
<path d="M 284 550 L 427.63 550" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 432.88 550 L 425.88 553.5 L 427.63 550 L 425.88 546.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="164" y="520" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 550px; margin-left: 165px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
<font style="font-size: 18px;">
存入新书
</font>
</div>
</div>
</div>
</foreignObject>
<text x="224" y="554" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
存入新书
</text>
</switch>
</g>
<path d="M 129 650 L 157.63 650" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 162.88 650 L 155.88 653.5 L 157.63 650 L 155.88 646.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 66.75 679.88 L 66.95 703.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 66.99 708.88 L 63.43 701.91 L 66.95 703.63 L 70.43 701.85 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 66.5 620 L 129 650 L 66.5 680 L 4 650 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 123px; height: 1px; padding-top: 650px; margin-left: 5px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 18px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
选择4
</div>
</div>
</div>
</foreignObject>
<text x="67" y="655" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="18px" text-anchor="middle">
选择4
</text>
</switch>
</g>
<path d="M 284 650 L 427.63 650" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 432.88 650 L 425.88 653.5 L 427.63 650 L 425.88 646.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="164" y="620" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 650px; margin-left: 165px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 18px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
旧书处理
</div>
</div>
</div>
</foreignObject>
<text x="224" y="655" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="18px" text-anchor="middle">
旧书处理
</text>
</switch>
</g>
<path d="M 67.61 769.5 L 68.91 804.14" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 69.1 809.38 L 65.34 802.52 L 68.91 804.14 L 72.34 802.26 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 132.75 740 L 157.63 740" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 162.88 740 L 155.88 743.5 L 157.63 740 L 155.88 736.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 66.5 710 L 132.75 740 L 66.5 770 L 0.25 740 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 131px; height: 1px; padding-top: 740px; margin-left: 1px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 18px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
选择5
</div>
</div>
</div>
</foreignObject>
<text x="67" y="745" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="18px" text-anchor="middle">
选择5
</text>
</switch>
</g>
<path d="M 284 740 L 427.63 740" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 432.88 740 L 425.88 743.5 L 427.63 740 L 425.88 736.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="164" y="710" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 740px; margin-left: 165px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 18px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
查找图书
</div>
</div>
</div>
</foreignObject>
<text x="224" y="745" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="18px" text-anchor="middle">
查找图书
</text>
</switch>
</g>
<path d="M 70.25 870 L 70.25 903.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 70.25 908.88 L 66.75 901.88 L 70.25 903.63 L 73.75 901.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 136.5 840 L 157.63 840" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 162.88 840 L 155.88 843.5 L 157.63 840 L 155.88 836.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 70.25 810 L 136.5 840 L 70.25 870 L 4 840 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 131px; height: 1px; padding-top: 840px; margin-left: 5px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 18px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
选择6
</div>
</div>
</div>
</foreignObject>
<text x="70" y="845" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="18px" text-anchor="middle">
选择6
</text>
</switch>
</g>
<path d="M 284 840 L 427.63 840" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 432.88 840 L 425.88 843.5 L 427.63 840 L 425.88 836.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="164" y="810" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 840px; margin-left: 165px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 18px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
查询读者的借阅信息
</div>
</div>
</div>
</foreignObject>
<text x="224" y="845" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="18px" text-anchor="middle">
查询读者的借阅信息
</text>
</switch>
</g>
<path d="M 136.5 940 L 167.63 940" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 172.88 940 L 165.88 943.5 L 167.63 940 L 165.88 936.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 70.25 970 L 70.25 1043.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 70.25 1048.88 L 66.75 1041.88 L 70.25 1043.63 L 73.75 1041.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 70.25 910 L 136.5 940 L 70.25 970 L 4 940 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 131px; height: 1px; padding-top: 940px; margin-left: 5px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 18px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
选择7
</div>
</div>
</div>
</foreignObject>
<text x="70" y="945" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="18px" text-anchor="middle">
选择7
</text>
</switch>
</g>
<path d="M 294 940 L 427.63 940" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 432.88 940 L 425.88 943.5 L 427.63 940 L 425.88 936.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="174" y="910" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 940px; margin-left: 175px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 18px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
查询读者信息
</div>
</div>
</div>
</foreignObject>
<text x="234" y="945" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="18px" text-anchor="middle">
查询读者信息
</text>
</switch>
</g>
<path d="M 70.25 1110 L 70.25 1183.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 70.25 1188.88 L 66.75 1181.88 L 70.25 1183.63 L 73.75 1181.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 136.5 1080 L 167.63 1080" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 172.88 1080 L 165.88 1083.5 L 167.63 1080 L 165.88 1076.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 70.25 1050 L 136.5 1080 L 70.25 1110 L 4 1080 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 131px; height: 1px; padding-top: 1080px; margin-left: 5px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 18px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
选择8
</div>
</div>
</div>
</foreignObject>
<text x="70" y="1085" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="18px" text-anchor="middle">
选择8
</text>
</switch>
</g>
<path d="M 70.25 1250 L 70.25 1323.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 70.25 1328.88 L 66.75 1321.88 L 70.25 1323.63 L 73.75 1321.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 136.5 1220 L 167.63 1220" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 172.88 1220 L 165.88 1223.5 L 167.63 1220 L 165.88 1216.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 70.25 1190 L 136.5 1220 L 70.25 1250 L 4 1220 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 131px; height: 1px; padding-top: 1220px; margin-left: 5px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 18px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
选择9
</div>
</div>
</div>
</foreignObject>
<text x="70" y="1225" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="18px" text-anchor="middle">
选择9
</text>
</switch>
</g>
<path d="M 70.25 1390 L 70.25 1463.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 70.25 1468.88 L 66.75 1461.88 L 70.25 1463.63 L 73.75 1461.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 136.5 1360 L 167.63 1360" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 172.88 1360 L 165.88 1363.5 L 167.63 1360 L 165.88 1356.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 70.25 1330 L 136.5 1360 L 70.25 1390 L 4 1360 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 131px; height: 1px; padding-top: 1360px; margin-left: 5px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 18px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
选择10
</div>
</div>
</div>
</foreignObject>
<text x="70" y="1365" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="18px" text-anchor="middle">
选择10
</text>
</switch>
</g>
<path d="M 70.25 1530 L 70.25 1603.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 70.25 1608.88 L 66.75 1601.88 L 70.25 1603.63 L 73.75 1601.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 136.5 1500 L 167.63 1500" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 172.88 1500 L 165.88 1503.5 L 167.63 1500 L 165.88 1496.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 70.25 1470 L 136.5 1500 L 70.25 1530 L 4 1500 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 131px; height: 1px; padding-top: 1500px; margin-left: 5px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 18px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
选择11
</div>
</div>
</div>
</foreignObject>
<text x="70" y="1505" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="18px" text-anchor="middle">
选择11
</text>
</switch>
</g>
<path d="M 70.96 1669.68 L 71.88 1707.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 72 1712.88 L 68.33 1705.97 L 71.88 1707.63 L 75.33 1705.8 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 70.25 1610 L 136.5 1640 L 70.25 1670 L 4 1640 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 131px; height: 1px; padding-top: 1640px; margin-left: 5px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 18px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
选择0
</div>
</div>
</div>
</foreignObject>
<text x="70" y="1645" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="18px" text-anchor="middle">
选择0
</text>
</switch>
</g>
<rect x="12.75" y="1714" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 1744px; margin-left: 14px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 18px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
结束
</div>
</div>
</div>
</foreignObject>
<text x="73" y="1749" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="18px" text-anchor="middle">
结束
</text>
</switch>
</g>
<path d="M 294 1080 L 427.63 1080" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 432.88 1080 L 425.88 1083.5 L 427.63 1080 L 425.88 1076.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="174" y="1050" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 1080px; margin-left: 175px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 18px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
读者借书
</div>
</div>
</div>
</foreignObject>
<text x="234" y="1085" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="18px" text-anchor="middle">
读者借书
</text>
</switch>
</g>
<path d="M 294 1220 L 427.63 1220" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 432.88 1220 L 425.88 1223.5 L 427.63 1220 L 425.88 1216.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="174" y="1190" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 1220px; margin-left: 175px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 18px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
读者还书
</div>
</div>
</div>
</foreignObject>
<text x="234" y="1225" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="18px" text-anchor="middle">
读者还书
</text>
</switch>
</g>
<path d="M 294 1360 L 427.63 1360" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 432.88 1360 L 425.88 1363.5 L 427.63 1360 L 425.88 1356.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="174" y="1330" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 1360px; margin-left: 175px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 18px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
文件保存
</div>
</div>
</div>
</foreignObject>
<text x="234" y="1365" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="18px" text-anchor="middle">
文件保存
</text>
</switch>
</g>
<path d="M 294 1500 L 427.63 1500" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 432.88 1500 L 425.88 1503.5 L 427.63 1500 L 425.88 1496.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="174" y="1470" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 1500px; margin-left: 175px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 18px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
从文件读取
</div>
</div>
</div>
</foreignObject>
<text x="234" y="1505" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="18px" text-anchor="middle">
从文件读取
</text>
</switch>
</g>
<path d="M 434 550 L 434 156.37" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 434 151.12 L 437.5 158.12 L 434 156.37 L 430.5 158.12 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<ellipse cx="434" cy="1500" rx="3" ry="3" fill="rgb(0, 0, 0)" stroke="none" pointer-events="all"/>
<rect x="424" y="1490" width="20" height="20" fill="none" stroke="none" pointer-events="all"/>
<path d="M 434 150 L 130.37 150" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 125.12 150 L 132.12 146.5 L 130.37 150 L 132.12 153.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<ellipse cx="434" cy="150" rx="3" ry="3" fill="rgb(0, 0, 0)" stroke="none" pointer-events="all"/>
<rect x="424" y="140" width="20" height="20" fill="none" stroke="none" pointer-events="all"/>
<ellipse cx="124" cy="150" rx="3" ry="3" fill="rgb(0, 0, 0)" stroke="none" pointer-events="all"/>
<rect x="114" y="140" width="20" height="20" fill="none" stroke="none" pointer-events="all"/>
<ellipse cx="434" cy="1360" rx="3" ry="3" fill="rgb(0, 0, 0)" stroke="none" pointer-events="all"/>
<rect x="424" y="1350" width="20" height="20" fill="none" stroke="none" pointer-events="all"/>
<ellipse cx="434" cy="1220" rx="3" ry="3" fill="rgb(0, 0, 0)" stroke="none" pointer-events="all"/>
<rect x="424" y="1210" width="20" height="20" fill="none" stroke="none" pointer-events="all"/>
<ellipse cx="434" cy="1080" rx="3" ry="3" fill="rgb(0, 0, 0)" stroke="none" pointer-events="all"/>
<rect x="424" y="1070" width="20" height="20" fill="none" stroke="none" pointer-events="all"/>
<ellipse cx="434" cy="940" rx="3" ry="3" fill="rgb(0, 0, 0)" stroke="none" pointer-events="all"/>
<rect x="424" y="930" width="20" height="20" fill="none" stroke="none" pointer-events="all"/>
<ellipse cx="434" cy="840" rx="3" ry="3" fill="rgb(0, 0, 0)" stroke="none" pointer-events="all"/>
<rect x="424" y="830" width="20" height="20" fill="none" stroke="none" pointer-events="all"/>
<path d="M 434 1500 L 434 740" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<ellipse cx="434" cy="740" rx="3" ry="3" fill="rgb(0, 0, 0)" stroke="none" pointer-events="all"/>
<rect x="424" y="730" width="20" height="20" fill="none" stroke="none" pointer-events="all"/>
<path d="M 434 740 L 434 650" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<ellipse cx="434" cy="650" rx="3" ry="3" fill="rgb(0, 0, 0)" stroke="none" pointer-events="all"/>
<rect x="424" y="640" width="20" height="20" fill="none" stroke="none" pointer-events="all"/>
<path d="M 434 650 L 434 550" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<ellipse cx="434" cy="550" rx="3" ry="3" fill="rgb(0, 0, 0)" stroke="none" pointer-events="all"/>
<rect x="424" y="540" width="20" height="20" fill="none" stroke="none" pointer-events="all"/>
<ellipse cx="434" cy="445" rx="3" ry="3" fill="rgb(0, 0, 0)" stroke="none" pointer-events="all"/>
<rect x="424" y="435" width="20" height="20" fill="none" stroke="none" pointer-events="all"/>
<ellipse cx="434" cy="365" rx="3" ry="3" fill="rgb(0, 0, 0)" stroke="none" pointer-events="all"/>
<rect x="424" y="355" width="20" height="20" fill="none" stroke="none" pointer-events="all"/>
</g>
<switch>
<g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/>
<a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank">
<text text-anchor="middle" font-size="10px" x="50%" y="100%">
Text is not SVG - cannot display
</text>
</a>
</switch>
</svg>

After

Width:  |  Height:  |  Size: 54 KiB

@ -95,21 +95,429 @@ void ShowLibInfo(const Book* book1, const Reader* reader1)
}
//C3
void ShowLibBook(Book* book1)
{
Book* book = book1;
while (book != NULL)
{ // \t :制表符
printf("%d\t%s\t%s\t%s\t%d\n", book->iNum, book->acName, book->acAuthor, book->acPress, book->iAmount);
book = book->next;
}
printf("\n按任意键返回\n");
getchar();
return;
}
//C4
Book* AddBook(Book* book1)
{
Book* book = book1;
if (book == NULL)
{
Book* tmp = (Book*)malloc(sizeof(Book));
tmp->next = NULL;
assert(tmp);
printf("输入书的编号:");
scanf("%d", &tmp->iNum);
getchar();
printf("输入书的名称:");
gets(&tmp->acName);
printf("输入书的作者:");
gets(tmp->acAuthor);
printf("输入书的出版社:");
gets(tmp->acPress);
printf("输入书的库存量:");
scanf("%d", &tmp->iAmount);
book = tmp;
printf("按任意键返回\n");
getchar();
return book;
return;
}
while (1)
{
while (book->next == NULL)
{
int flag = 1;
while (flag)
{
Book* tmp = (Book*)malloc(sizeof(Book));
tmp->next = NULL;
assert(tmp);
printf("输入书的编号:");
scanf("%d", &tmp->iNum);
getchar();
printf("输入书的名称:");
gets(&tmp->acName);
printf("输入书的作者:");
gets(tmp->acAuthor);
printf("输入书的出版社:");
gets(tmp->acPress);
printf("输入书的库存量:");
scanf("%d", &tmp->iAmount);
book->next = tmp;
printf("是否继续输入:1==>继续\t0==>结束\t");
scanf("%d", &flag);
getchar();
if (flag == 0)
{
printf("按任意键返回\n");
getchar();
return book1;
}
}
}
book = book->next;
}
printf("按任意键返回\n");
getchar();
return;
}
//C5
Book* DealoldBook(Book* book1)
{
Book* book = book1;
Book* prev = book1;
printf("输入要处理旧书的编号:");
int id;
scanf("%d", &id);
getchar();
while (book != NULL)
{
if (id == book->iNum)
{
if (book1 == book)
{
book = book->next;
free(prev);
return book;
}
prev->next = book->next;
free(book); // free():释放资源
printf("已将旧书处理掉!\n");
printf("按任意键返回\n");
getchar();
return book1;
}
prev = book;
book = book->next;
}
printf("没有找到该图书\n");
printf("按任意键返回\n");
getchar();
return book1;
}
//C6
void foundBook(Book* book1)
{
Book* book = book1;
printf("输入要查找的书的id:");
int id;
scanf("%d", &id);
getchar();
while (book != NULL)
{
if (id == book->iNum)
{
printf("该书的信息如下:\n");
printf("%d\t%s\t%s\t%s\t%d\n", book->iNum, book->acName, book->acAuthor, book->acPress, book->iAmount);
printf("按任意键返回\n");
getchar();
return;
}
book = book->next;
}
printf("没有找到该书!\n");
printf("按任意键返回\n");
getchar();
return;
}
//C7
void foundReader_Info(Reader* reader1)
{
Reader* reader = reader1; //备份
printf("输入读者的id:");
int id;
scanf("%d", &id);
getchar();
while (reader)
{
if (id == reader->iNum)
{
printf("借阅的书的编号如下:\n");
for (int i = 0; i < reader->iMax; i++) //根据读者可以借阅的数量作为循环终止条件
{
if (reader->aiBookId[i] != 0) //数组里不为0证明有一条记录因为数组初始化为0并且书的编号不可能为0
{
printf("%d\n", reader->aiBookId[i]);
}
}
printf("按任意键返回\n");
getchar();
return;
}
reader = reader->next;
}
printf("没有该读者!\n");
printf("按任意键返回\n");
getchar();
return;
}
//C8
void foundReaderInfo(Reader* reader1)
{
Reader* reader = reader1;
printf("输入读者的id:");
int id;
scanf("%d", &id);
getchar();
while (reader)
{
if (id == reader->iNum)
{
printf("读者id:%d\n", reader->iNum);
printf("读者姓名:%s\n", reader->acName);
printf("读者性别:%s\n", reader->acSex);
printf("读者职位:%s\n", reader->position);
printf("读者已借阅书的数量:%d\n", reader->iAmount);
printf("按任意键返回\n");
getchar();
return;
}
reader = reader->next;
}
printf("没有找到该读者\n");
printf("按任意键返回\n");
getchar();
return;
}
//C9
Reader* LendBook(Reader* reader1, Book* book1)
{
Reader* reader = reader1;
Book* book = book1;
Reader* prev = reader1;
Reader* tmpp = reader1;
printf("输入读者id:");
int id;
scanf("%d", &id);
getchar();
if (reader == NULL)
{
Reader* tmp = (Reader*)malloc(sizeof(Reader));
tmp->next = NULL;
tmp->iAmount = 0;
tmp->iNum = id;
printf("输入读者名字:");
scanf("%s", &tmp->acName);
getchar();
printf("输入读者性别:");
scanf("%s", &tmp->acSex);
getchar();
printf("输入读者职位:<student\tor\tteacher>");
scanf("%s", &tmp->position);
getchar();
if (strcmp(tmp->position, "student") == 0)
{
tmp->iMax = 20;
tmp->day = 30;
}
else {
tmp->iMax = 40;
tmp->day = 60;
}
for (int i = 0; i < tmp->iMax; i++)
{
tmp->aiBookId[i] = 0;
}
printf("输入要借的书的编号:");
int id_book;
scanf("%d", &id_book);
getchar();
while (book != NULL)
{
if (id_book == book->iNum)
{
if (book->iAmount <= 1)
{
printf("借阅失败,该图书库存不足.\n");
printf("按任意键返回\n");
getchar();
return NULL;
}
if ((tmp->iAmount) + 1 > tmp->iMax)
{
printf("借阅失败,该读者借阅图书数量已达上线.\n");
printf("按任意键返回\n");
getchar();
return NULL;
}
book->iAmount--;
tmp->aiBookId[tmp->iAmount] = id_book;
tmp->iAmount;
reader = tmp;
printf("借阅成功!\n");
printf("按任意键返回\n");
getchar();
return reader;
}
book = book->next;
}
printf("没有找到该书!\n");
printf("按任意键返回\n");
getchar();
return reader1;
}
if (reader != NULL)
{
while (reader != NULL)
{
if (id == reader->iNum)
{
printf("图使馆当前的书籍册:\n");
ShowLibBook(book);
printf("输入要借的书的编号:");
int id_book;
scanf("%d", &id_book);
getchar();
while (book != NULL)
{
if (id_book == book->iNum)
{
if (book->iAmount <= 1)
{
printf("借阅失败,该图书库存不足.\n");
printf("按任意键返回\n");
getchar();
return reader1;
}
if (tmpp->iAmount + 1 > tmpp->iMax)
{
printf("借阅失败,该读者借阅图书数量已达上线.\n");
printf("按任意键返回\n");
getchar();
return reader1;
}
reader->iAmount++;
reader->aiBookId[tmpp->iAmount] = id_book;
return reader1;
}
book = book->next;
}
printf("没有找到该书!\n");
printf("按任意键返回\n");
}
reader = reader->next;
}
}
}
//C10
void returnBook(Reader* reader1, Book* book1)
{
Reader* reader = reader1;
Book* book = book1;
printf("请输入读者的id:");
int id;
scanf("%d", &id);
getchar();
if (reader != NULL)
{
while (reader != NULL)
{
if (id == reader->iNum)
{
printf("请输入要还的书的编号:");
int id_book;
scanf("%d", &id_book);
getchar();
for (int i = 0; i < reader->iMax; i++)
{
if (reader->aiBookId[i] == id_book)
{
reader->aiBookId[i] = 0;
while (book)
{
if (id_book == book->iNum)
{
book->iAmount++;
printf("还书成功!\n");
printf("按任意键返回\n");
getchar();
return reader1;
}
book = book->next;
}
}
}
printf("没有找到该图书检查图书的Id\n");
printf("按任意键返回\n");
getchar();
return reader1;
}
reader = reader->next;
}
printf("没有找到该读者检查读者id是否输入有误\n");
printf("按任意键返回\n");
getchar();
return reader1;
}
}
//C11
void save(Book* book1)
{
FILE* fp;
Book* pCur = book1;
int iCount = 0;
if (pCur == NULL)
{
printf("\n没有学生记录!\n");
return;
}
if ((fp = fopen("book.txt", "wb")) == NULL)
{
printf("创建文件失败!\n");
getchar();
exit(1);
}
while (pCur)
{
fwrite(pCur, sizeof(Book), 1, fp);
pCur = pCur->next;
iCount++;
}
printf("\n");
printf("保存文件的数据数目为:%d\n", iCount);
fclose(fp);
}
//C12
Book* read1()
{
FILE* fp;
Book* pHead = NULL, * pTemp = NULL, * pCur = NULL;
if ((fp = fopen("book.txt", "r")) == NULL)
{
printf("\n文件打开失败!请检查文件名!\n");
exit(0);
}
pTemp = (Book*)malloc(sizeof(Book));
while (fread(pTemp, sizeof(Book), 1, fp))
{
if (!pHead)
{
pHead = pCur = pTemp;
}
else
{
pCur->next = pTemp;
pCur = pTemp;
}
pTemp = (Book*)malloc(sizeof(Book));
}
fclose(fp);
return pHead;
}
Loading…
Cancel
Save