Compare commits

..

No commits in common. 'master' and '流程图' have entirely different histories.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 47 KiB

@ -43,7 +43,6 @@
## C1函数模块 ## C1函数模块
1.函数原形int main(); 1.函数原形int main();
2.功能调用ShowMainMenu()函数,显示主界面 2.功能调用ShowMainMenu()函数,显示主界面
``` ```
@ -73,13 +72,11 @@ void ShowMainMenu()
} }
``` ```
## 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) void ShowLibInfo(const Book* book1, const Reader* reader1)
{ {
Book* book = book1; Book* book = book1;
@ -101,6 +98,7 @@ void ShowLibInfo(const Book* book1, const Reader* reader1)
return; return;
} }
``` ```
## C3查找图书馆藏书信息模块 ## C3查找图书馆藏书信息模块
@ -121,6 +119,8 @@ void ShowLibBook(Book* book1)
return; return;
} }
``` ```
## C4存入新书信息模块 ## C4存入新书信息模块
@ -193,6 +193,8 @@ Book* AddBook(Book* book1)
return; return;
} }
``` ```
## C5:旧书处理信息模块 ## C5:旧书处理信息模块
@ -200,7 +202,6 @@ Book* AddBook(Book* book1)
1函数原形: Book* DealoldBook(Book* book); 1函数原形: Book* DealoldBook(Book* book);
2) 功能: 接受一个形参:图书链表的地址,遍历该链表,用书的编号进行匹配,找到该图书后删除该图书,否则返回 2) 功能: 接受一个形参:图书链表的地址,遍历该链表,用书的编号进行匹配,找到该图书后删除该图书,否则返回
``` ```
Book* DealoldBook(Book* book1) Book* DealoldBook(Book* book1)
{ {
Book* book = book1; Book* book = book1;
@ -235,6 +236,7 @@ Book* DealoldBook(Book* book1)
return book1; return book1;
} }
``` ```
## C6:查找图书信息模块 ## C6:查找图书信息模块
@ -243,30 +245,9 @@ Book* DealoldBook(Book* book1)
2) 功能:接受一个形参:图书链表的地址,遍历该链表,用书的编号进行匹配,找到该图书后显示该图书,否则返回 2) 功能:接受一个形参:图书链表的地址,遍历该链表,用书的编号进行匹配,找到该图书后显示该图书,否则返回
``` ```
void foundBook(Book* book1)
{
Book* book = book1;
printf("输入要查找的书的id:");
int id;
scanf("%d", &id);
getchar();
while (book != NULL)
{
if (id == book->iNum)
{
printf("该书的信息如下:\n");
printf("%d\t%s\t%s\t%s\t%d\n", book->iNum, book->acName, book->acAuthor, book->acPress, book->iAmount);
printf("按任意键返回\n");
getchar();
return;
}
book = book->next;
}
printf("没有找到该书!\n");
printf("按任意键返回\n");
getchar();
return;
}
``` ```
@ -276,36 +257,7 @@ void foundBook(Book* book1)
2) 功能: 接受一个形参:读者链表的地址,遍历该链表,用读者的编号进行匹配,找到该读者显示该读者的信息,否则返回 2) 功能: 接受一个形参:读者链表的地址,遍历该链表,用读者的编号进行匹配,找到该读者显示该读者的信息,否则返回
``` ```
void foundReader_Info(Reader* reader1)
{
Reader* reader = reader1; //备份
printf("输入读者的id:");
int id;
scanf("%d", &id);
getchar();
while (reader)
{
if (id == reader->iNum)
{
printf("借阅的书的编号如下:\n");
for (int i = 0; i < reader->iMax; i++) //根据读者可以借阅的数量作为循环终止条件
{
if (reader->aiBookId[i] != 0) //数组里不为0证明有一条记录因为数组初始化为0并且书的编号不可能为0
{
printf("%d\n", reader->aiBookId[i]);
}
}
printf("按任意键返回\n");
getchar();
return;
}
reader = reader->next;
}
printf("没有该读者!\n");
printf("按任意键返回\n");
getchar();
return;
}
``` ```
@ -315,33 +267,6 @@ void foundReader_Info(Reader* reader1)
2功能: 接受一个形参:读者链表的地址,遍历该链表,用读者的编号进行匹配,找到该读者显示该读者的借阅信息,否则返回 2功能: 接受一个形参:读者链表的地址,遍历该链表,用读者的编号进行匹配,找到该读者显示该读者的借阅信息,否则返回
``` ```
void foundReaderInfo(Reader* reader1)
{
Reader* reader = reader1;
printf("输入读者的id:");
int id;
scanf("%d", &id);
getchar();
while (reader)
{
if (id == reader->iNum)
{
printf("读者id:%d\n", reader->iNum);
printf("读者姓名:%s\n", reader->acName);
printf("读者性别:%s\n", reader->acSex);
printf("读者职位:%s\n", reader->position);
printf("读者已借阅书的数量:%d\n", reader->iAmount);
printf("按任意键返回\n");
getchar();
return;
}
reader = reader->next;
}
printf("没有找到该读者\n");
printf("按任意键返回\n");
getchar();
return;
}
``` ```
@ -351,125 +276,6 @@ void foundReaderInfo(Reader* reader1)
2)功能:接受两个形参:读者链表地址和图书链表地址,用读者的编号进行匹配,找到该读者后,用图书的编号进行匹配,进行借书,否则返回 2)功能:接受两个形参:读者链表地址和图书链表地址,用读者的编号进行匹配,找到该读者后,用图书的编号进行匹配,进行借书,否则返回
``` ```
Reader* LendBook(Reader* reader1, Book* book1)
{
Reader* reader = reader1;
Book* book = book1;
Reader* prev = reader1;
Reader* tmpp = reader1;
printf("输入读者id:");
int id;
scanf("%d", &id);
getchar();
if (reader == NULL)
{
Reader* tmp = (Reader*)malloc(sizeof(Reader));
tmp->next = NULL;
tmp->iAmount = 0;
tmp->iNum = id;
printf("输入读者名字:");
scanf("%s", &tmp->acName);
getchar();
printf("输入读者性别:");
scanf("%s", &tmp->acSex);
getchar();
printf("输入读者职位:<student\tor\tteacher>");
scanf("%s", &tmp->position);
getchar();
if (strcmp(tmp->position, "student") == 0)
{
tmp->iMax = 20;
tmp->day = 30;
}
else {
tmp->iMax = 40;
tmp->day = 60;
}
for (int i = 0; i < tmp->iMax; i++)
{
tmp->aiBookId[i] = 0;
}
printf("输入要借的书的编号:");
int id_book;
scanf("%d", &id_book);
getchar();
while (book != NULL)
{
if (id_book == book->iNum)
{
if (book->iAmount <= 1)
{
printf("借阅失败,该图书库存不足.\n");
printf("按任意键返回\n");
getchar();
return NULL;
}
if ((tmp->iAmount) + 1 > tmp->iMax)
{
printf("借阅失败,该读者借阅图书数量已达上线.\n");
printf("按任意键返回\n");
getchar();
return NULL;
}
book->iAmount--;
tmp->aiBookId[tmp->iAmount] = id_book;
tmp->iAmount;
reader = tmp;
printf("借阅成功!\n");
printf("按任意键返回\n");
getchar();
return reader;
}
book = book->next;
}
printf("没有找到该书!\n");
printf("按任意键返回\n");
getchar();
return reader1;
}
if (reader != NULL)
{
while (reader != NULL)
{
if (id == reader->iNum)
{
printf("图使馆当前的书籍册:\n");
ShowLibBook(book);
printf("输入要借的书的编号:");
int id_book;
scanf("%d", &id_book);
getchar();
while (book != NULL)
{
if (id_book == book->iNum)
{
if (book->iAmount <= 1)
{
printf("借阅失败,该图书库存不足.\n");
printf("按任意键返回\n");
getchar();
return reader1;
}
if (tmpp->iAmount + 1 > tmpp->iMax)
{
printf("借阅失败,该读者借阅图书数量已达上线.\n");
printf("按任意键返回\n");
getchar();
return reader1;
}
reader->iAmount++;
reader->aiBookId[tmpp->iAmount] = id_book;
return reader1;
}
book = book->next;
}
printf("没有找到该书!\n");
printf("按任意键返回\n");
}
reader = reader->next;
}
}
}
``` ```
@ -478,58 +284,7 @@ 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;
}
}
``` ```
@ -538,35 +293,9 @@ void returnBook(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:读取信息模块
@ -574,33 +303,6 @@ void save(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;
}
``` ```
@ -627,24 +329,26 @@ Book* read1()
针对概要设计 针对概要设计
C2:void ShowLibInfo(const Book* book, const Reader* reader);\\查询图书馆的总信息 C2:void ShowLibInfo(const Book* book, const Reader* reader);\\查询图书馆的总信息
![C2](images/c2.svg) ![C2](c2.svg)
C3:void ShowLibBook(Book* book);\\查询图书馆藏书信息 C3:void ShowLibBook(Book* book);\\查询图书馆藏书信息
![c3](images/c3.svg) ![c3](images/c3.svg)
)
C4:Book* AddBook(Book* book);\\存入新书 C4:Book* AddBook(Book* book);\\存入新书
![c4](images/c4.svg) ![c4](images/c4.svg)
C5:Book* DealoldBook(Book* book);\\旧书处理 C5:Book* DealoldBook(Book* book);\\旧书处理
![c5](images/c5.svg) ![c5](images/c5.svg)
C6:void foundBook(Book* book);\\根据书名检索书刊信息 C6:void foundBook(Book* book);\\根据书名检索书刊信息
![C6](images/foundbook.svg)
C7:void foundReader_Info(Reader* reader);\\查询读者的借阅信息 C7:void foundReader_Info(Reader* reader);\\查询读者的借阅信息
![C7](images/foundreaderinfo.svg)
C8:void foundReaderInfo(Reader* reader);\\查询读者信息 C8:void foundReaderInfo(Reader* reader);\\查询读者信息
![C8](images/ReaderInfo.svg)
C9:Reader* LendBook(Reader* reader, Book* book);\\读者借书 C9:Reader* LendBook(Reader* reader, Book* book);\\读者借书
![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)

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

128
c2.svg

@ -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

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

@ -1,184 +0,0 @@
<?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>

Before

Width:  |  Height:  |  Size: 12 KiB

@ -1,296 +0,0 @@
<?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>

Before

Width:  |  Height:  |  Size: 20 KiB

@ -1,192 +0,0 @@
<?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>

Before

Width:  |  Height:  |  Size: 13 KiB

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