Compare commits

...

21 Commits

@ -5,8 +5,8 @@
## 项目简介 ## 项目简介
本系统是程序设计与问题求解课程设计项目,实现了库存零件 CSV 格式数据文件的读取和保存以及数据的增删改查CRUD、排序和图表显示等功能。项目采用 C 语言编程实现,在 VS Code 集成开发环境IDE中用 GCC 进行编译。系统采用模块化设计,程序结构清晰,采用菜单驱动的命令行界面,操作便捷,能够用 CSV 格式读取和保存数据,通用性强,能够用图表展示数据,直观清楚。 本系统是程序设计与问题求解课程设计项目,实现了图书管理 CSV 格式数据文件的读取和保存以及数据的增删改查CRUD等功能。项目采用 C 语言编程实现,在 VS Code 集成开发环境IDE中用 GCC 进行编译。系统采用模块化设计,程序结构清晰,采用菜单驱动的命令行界面,操作便捷,能够用 CSV 格式读取和保存数据,通用性强,能够用图表展示数据,直观清楚。
下载地址https://bdgit.educoder.net/mac76tib2/test.git 下载地址https://bdgit.educoder.net/mac76tib2/libray.git
项目开发过程中采用 Kanban看板进行任务管理和分工协作并使用 Git 对程序代码和文档进行版本管理。任务分工情况如下: 项目开发过程中采用 Kanban看板进行任务管理和分工协作并使用 Git 对程序代码和文档进行版本管理。任务分工情况如下:
| 任务 | 设计 | 开发 | 测试 | 文档 | | 任务 | 设计 | 开发 | 测试 | 文档 |
|------|-----|------|------|-----| |------|-----|------|------|-----|
@ -43,20 +43,63 @@
## C1函数模块 ## C1函数模块
1.函数原形int main(); 1.函数原形int main();
2.功能调用ShowMainMenu()函数,显示主界面 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查询图书馆信息模块 ## C2查询图书馆信息模块
函数原形void ShowLibInfo(const Book* book, const Reader* reader); 函数原形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;
}
``` ```
@ -65,9 +108,18 @@
1) 函数原形: void ShowLibBook(Book* book); 1) 函数原形: void ShowLibBook(Book* book);
2) 功能: 接受一个形参:图书的链表地址,遍历该链表,显示出所有图书的信息 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;
}
``` ```
@ -76,10 +128,70 @@
1) 函数原形: Book* AddBook(Book* book); 1) 函数原形: Book* AddBook(Book* book);
2) 功能: 接受一个形参:图书的链表地址,利用尾插对链表进行修改,添加图书 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;
}
``` ```
@ -89,7 +201,39 @@
2) 功能: 接受一个形参:图书链表的地址,遍历该链表,用书的编号进行匹配,找到该图书后删除该图书,否则返回 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;
}
``` ```
@ -98,6 +242,7 @@
1函数原形: void foundBook(Book* book); 1函数原形: void foundBook(Book* book);
2) 功能:接受一个形参:图书链表的地址,遍历该链表,用书的编号进行匹配,找到该图书后显示该图书,否则返回 2) 功能:接受一个形参:图书链表的地址,遍历该链表,用书的编号进行匹配,找到该图书后显示该图书,否则返回
``` ```
void foundBook(Book* book1) void foundBook(Book* book1)
{ {
Book* book = book1; Book* book = book1;
@ -123,9 +268,6 @@ void foundBook(Book* book1)
return; return;
} }
``` ```
## C7:查询读者借阅信息模块 ## C7:查询读者借阅信息模块
@ -133,6 +275,7 @@ void foundBook(Book* book1)
1函数原形: void foundReader_Info(Reader* reader); 1函数原形: void foundReader_Info(Reader* reader);
2) 功能: 接受一个形参:读者链表的地址,遍历该链表,用读者的编号进行匹配,找到该读者显示该读者的信息,否则返回 2) 功能: 接受一个形参:读者链表的地址,遍历该链表,用读者的编号进行匹配,找到该读者显示该读者的信息,否则返回
``` ```
void foundReader_Info(Reader* reader1) void foundReader_Info(Reader* reader1)
{ {
Reader* reader = reader1; //备份 Reader* reader = reader1; //备份
@ -164,8 +307,6 @@ void foundReader_Info(Reader* reader1)
return; return;
} }
``` ```
## C8:查询读者借书模块 ## C8:查询读者借书模块
@ -173,6 +314,7 @@ void foundReader_Info(Reader* reader1)
1函数原形: void foundReaderInfo(Reader* reader); 1函数原形: void foundReaderInfo(Reader* reader);
2功能: 接受一个形参:读者链表的地址,遍历该链表,用读者的编号进行匹配,找到该读者显示该读者的借阅信息,否则返回 2功能: 接受一个形参:读者链表的地址,遍历该链表,用读者的编号进行匹配,找到该读者显示该读者的借阅信息,否则返回
``` ```
void foundReaderInfo(Reader* reader1) void foundReaderInfo(Reader* reader1)
{ {
Reader* reader = reader1; Reader* reader = reader1;
@ -208,6 +350,7 @@ void foundReaderInfo(Reader* reader1)
1)函数原形: Reader* LendBook(Reader* reader, Book* book); 1)函数原形: Reader* LendBook(Reader* reader, Book* book);
2)功能:接受两个形参:读者链表地址和图书链表地址,用读者的编号进行匹配,找到该读者后,用图书的编号进行匹配,进行借书,否则返回 2)功能:接受两个形参:读者链表地址和图书链表地址,用读者的编号进行匹配,找到该读者后,用图书的编号进行匹配,进行借书,否则返回
``` ```
Reader* LendBook(Reader* reader1, Book* book1) Reader* LendBook(Reader* reader1, Book* book1)
{ {
Reader* reader = reader1; Reader* reader = reader1;
@ -335,7 +478,58 @@ Reader* LendBook(Reader* reader1, Book* book1)
函数原形void returnBook(Reader* reader, Book* book); 函数原形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;
}
}
``` ```
@ -344,9 +538,35 @@ Reader* LendBook(Reader* reader1, Book* book1)
1函数原形: void save(Book* book); 1函数原形: void save(Book* book);
2) 功能接受一个形参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:读取信息模块 ## C12:读取信息模块
@ -354,6 +574,33 @@ Reader* LendBook(Reader* reader1, Book* book1)
1函数原形: Book* read1(); 1函数原形: Book* read1();
2) 功能打开一个文件将文件中的信息读取到内存中并返回一个Book类型的指针 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;
}
``` ```
@ -374,22 +621,21 @@ Reader* LendBook(Reader* reader1, Book* book1)
文件保存 文件保存
从文件读取 从文件读取
上述各模块通过主程序main进行调用系统模块图如下: 上述各模块通过主程序main进行调用系统模块图如下:
![](images/text.drawio.svg)
## 详细设计 ## 详细设计
针对概要设计 针对概要设计
C2:void ShowLibInfo(const Book* book, const Reader* reader);\\查询图书馆的总信息 C2:void ShowLibInfo(const Book* book, const Reader* reader);\\查询图书馆的总信息
![C2](images/c2.svg)
C3:void ShowLibBook(Book* book);\\查询图书馆藏书信息 C3:void ShowLibBook(Book* book);\\查询图书馆藏书信息
![c3](images/c3.svg)
C4:Book* AddBook(Book* book);\\存入新书 C4:Book* AddBook(Book* book);\\存入新书
![c4](images/c4.svg)
C5:Book* DealoldBook(Book* book);\\旧书处理 C5:Book* DealoldBook(Book* book);\\旧书处理
![c5](images/c5.svg)
C6:void foundBook(Book* book);\\根据书名检索书刊信息 C6:void foundBook(Book* book);\\根据书名检索书刊信息
![C6](images/foundbook.svg) ![C6](images/foundbook.svg)
C7:void foundReader_Info(Reader* reader);\\查询读者的借阅信息 C7:void foundReader_Info(Reader* reader);\\查询读者的借阅信息
![C7](images/foundreaderinfo.svg) ![C7](images/foundreaderinfo.svg)
C8:void foundReaderInfo(Reader* reader);\\查询读者信息 C8:void foundReaderInfo(Reader* reader);\\查询读者信息
@ -397,8 +643,8 @@ C8:void foundReaderInfo(Reader* reader);\\查询读者信息
C9:Reader* LendBook(Reader* reader, Book* book);\\读者借书 C9:Reader* LendBook(Reader* reader, Book* book);\\读者借书
![C9](images/LendBook.svg) ![C9](images/LendBook.svg)
C10:void returnBook(Reader* reader, Book* book);\\读者还书 C10:void returnBook(Reader* reader, Book* book);\\读者还书
![C10](images/returnBook.svg)
C11:void save(Book* book);\\文件保存 C11:void save(Book* book);\\文件保存
![C11](images/save.svg)
C12:Book* read1();\\从文件读取 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,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,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

@ -1,19 +0,0 @@
#ifndef
#define
#endif
Loading…
Cancel
Save