Compare commits

..

6 Commits

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

@ -700,8 +700,8 @@ C7:void foundReaderInfo(Reader* reader);\\查询读者信息
C8:Reader* LendBook(Reader* reader, Book* book);\\读者借书 C8:Reader* LendBook(Reader* reader, Book* book);\\读者借书
![888](LendBook.svg) ![888](LendBook.svg)
C9:void returnBook(Reader* reader, Book* book);\\读者还书 C9:void returnBook(Reader* reader, Book* book);\\读者还书
![999](returnBook.svg)
C10:void save(Book* book);\\文件保存 C10:void save(Book* book);\\文件保存
![000](save.svg)
C11:Book* read1();\\从文件读取 C11:Book* read1();\\从文件读取
![111](Bookread.svg)

@ -0,0 +1,234 @@
<?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="4284" height="6408">
<rect x="0" y="0" width="4284" height="6408" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="648,360 648,447"/>
<polygon fill="#404040" stroke="none" points="648,468 668,433 627,433"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="648,6012 648,6099"/>
<polygon fill="#404040" stroke="none" points="648,6120 668,6085 627,6085"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 468,144 A 108 108, 0, 0 0, 468 360 L 828,360 A 108 108, 0, 0 0, 828 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">returnBook</tspan>
<tspan x="648" dy="72" unicode-bidi="embed">(&#25972;&#25968;&#20540; id)</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 504,6120 A 72 72, 0, 0 0, 504 6264 L 792,6264 A 72 72, 0, 0 0, 792 6120 Z"/>
<text x="648" y="6141" 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,648 648,735"/>
<polygon fill="#404040" stroke="none" points="648,756 668,721 627,721"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="648,936 648,1023"/>
<polygon fill="#404040" stroke="none" points="648,1044 668,1009 627,1009"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="648,1188 648,1275"/>
<polygon fill="#404040" stroke="none" points="648,1296 668,1261 627,1261"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="648,1440 648,1527"/>
<polygon fill="#404040" stroke="none" points="648,1548 668,1513 627,1513"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="648,5256 648,5343"/>
<polygon fill="#404040" stroke="none" points="648,5364 668,5329 627,5329"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="648,5508 648,5595"/>
<polygon fill="#404040" stroke="none" points="648,5616 668,5581 627,5581"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="648,5760 648,5847"/>
<polygon fill="#404040" stroke="none" points="648,5868 668,5833 627,5833"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" d="M 396,468 L 396,648 L 900,648 L 900,468 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" points="396,504 900,504"/>
<polyline fill="none" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" points="432,468 432,648"/>
<text x="666" y="525" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="666" dy="72" unicode-bidi="embed">&#25972;&#25968;&#20540; reader</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" d="M 432,756 L 432,936 L 864,936 L 864,756 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" points="432,792 864,792"/>
<polyline fill="none" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" points="468,756 468,936"/>
<text x="666" y="813" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="666" dy="72" unicode-bidi="embed">&#25972;&#25968;&#20540; id</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="5" stroke-dasharray="none" d="M 504,1044 L 432,1188 L 792,1188 L 864,1044 Z"/>
<text x="648" y="1065" 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,1296 L 432,1440 L 864,1440 L 864,1296 Z"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="468,1296 468,1440"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="828,1296 828,1440"/>
<text x="648" y="1317" 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,1728 1116,1728 1116,1995"/>
<polygon fill="#404040" stroke="none" points="1116,2016 1136,1981 1095,1981"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1116,2160 1116,5220 704,5220"/>
<polygon fill="#404040" stroke="none" points="684,5220 718,5240 718,5199"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="360,1728 180,1728 180,5220 591,5220"/>
<polygon fill="#404040" stroke="none" points="612,5220 577,5199 577,5240"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="5" stroke-dasharray="none" d="M 648,1548 L 324,1728 L 648,1908 L 972,1728 Z"/>
<text x="648" y="1677" 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="1476,2088 1908,2088 1908,2211"/>
<polygon fill="#404040" stroke="none" points="1908,2232 1928,2197 1887,2197"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1908,4932 1908,5040 1188,5040 1188,2180"/>
<polygon fill="#404040" stroke="none" points="1188,2160 1167,2194 1208,2194"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2268,2448 2448,2448 2448,2715"/>
<polygon fill="#404040" stroke="none" points="2448,2736 2468,2701 2427,2701"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2448,3456 2448,4896 1964,4896"/>
<polygon fill="#404040" stroke="none" points="1944,4896 1978,4916 1978,4875"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1548,2448 1368,2448 1368,4896 1851,4896"/>
<polygon fill="#404040" stroke="none" points="1872,4896 1837,4875 1837,4916"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 1908,2232 L 1512,2448 L 1908,2664 L 2304,2448 Z"/>
<text x="1908" y="2397" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1908" dy="72" unicode-bidi="embed">id == reader-&gt;iNum</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2448,2916 2448,3003"/>
<polygon fill="#404040" stroke="none" points="2448,3024 2468,2989 2427,2989"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2448,3168 2448,3291"/>
<polygon fill="#404040" stroke="none" points="2448,3312 2468,3277 2427,3277"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 2160,2736 L 2160,2916 L 2736,2916 L 2736,2736 Z"/>
<polyline fill="none" stroke="#602020" stroke-width="5" stroke-dasharray="none" points="2160,2772 2736,2772"/>
<polyline fill="none" stroke="#602020" stroke-width="5" stroke-dasharray="none" points="2196,2736 2196,2916"/>
<text x="2466" y="2793" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2466" dy="72" unicode-bidi="embed">&#25972;&#25968;&#20540; id_book</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 2196,3024 L 2124,3168 L 2700,3168 L 2772,3024 Z"/>
<text x="2448" y="3045" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2448" dy="72" unicode-bidi="embed">&#36755;&#20837; id_book</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2880,3384 3240,3384 3240,3507"/>
<polygon fill="#404040" stroke="none" points="3240,3528 3260,3493 3219,3493"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="3240,4608 3240,4716 2520,4716 2520,3476"/>
<polygon fill="#404040" stroke="none" points="2520,3456 2499,3490 2540,3490"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="3600,3744 3780,3744 3780,4047"/>
<polygon fill="#404040" stroke="none" points="3780,4068 3800,4033 3759,4033"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="3780,4212 3780,4572 3296,4572"/>
<polygon fill="#404040" stroke="none" points="3276,4572 3310,4592 3310,4551"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2880,3744 2700,3744 2700,4572 3183,4572"/>
<polygon fill="#404040" stroke="none" points="3204,4572 3169,4551 3169,4592"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 3240,3528 L 2844,3744 L 3240,3960 L 3636,3744 Z"/>
<text x="3240" y="3693" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3240" dy="72" unicode-bidi="embed">reader-&gt;aiBookId[i]</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="3996,4140 4104,4140 4104,4392 3852,4392 3852,4232"/>
<polygon fill="#404040" stroke="none" points="3852,4212 3831,4246 3872,4246"/>
<g>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="5" stroke-dasharray="none" d="M 3636,4068 L 3564,4140 L 3636,4212 L 3924,4212 L 3996,4140 L 3924,4068 Z"/>
<text x="3780" y="4089" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3780" dy="72" unicode-bidi="embed">book</tspan>
</text>
</g>
<text x="4068" y="4017" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4068" dy="72" unicode-bidi="embed">&#30495;</tspan>
</text>
<text x="3708" y="4233" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3708" dy="72" unicode-bidi="embed">&#20551;</tspan>
</text>
</g>
<g>
</g>
<ellipse cx="3240" cy="4572" rx="36" ry="36" fill="#C04040" stroke="#602020" stroke-width="5"/>
<text x="3708" y="3621" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3708" dy="72" unicode-bidi="embed">&#30495;</tspan>
</text>
<text x="2772" y="3621" 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="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 2088,3312 L 2016,3384 L 2088,3456 L 2808,3456 L 2880,3384 L 2808,3312 Z"/>
<text x="2448" y="3333" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2448" dy="72" unicode-bidi="embed">i = 0 &#21040; reader-&gt;iMax</tspan>
</text>
</g>
<text x="3024" y="3261" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3024" dy="72" unicode-bidi="embed">&#19979;&#19968;&#20010;</tspan>
</text>
<text x="2340" y="3477" 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>
<g>
</g>
<ellipse cx="1908" cy="4896" rx="36" ry="36" fill="#C04040" stroke="#602020" stroke-width="5"/>
<text x="2376" y="2325" 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="2325" 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 828,2016 L 756,2088 L 828,2160 L 1404,2160 L 1476,2088 L 1404,2016 Z"/>
<text x="1116" y="2037" 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="1548" y="1965" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1548" dy="72" unicode-bidi="embed">&#30495;</tspan>
</text>
<text x="1044" y="2181" 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="5220" rx="36" ry="36" fill="#FFD0D0" stroke="#A07070" stroke-width="5"/>
<text x="1044" y="1605" 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="1605" 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,5364 L 432,5508 L 792,5508 L 864,5364 Z"/>
<text x="648" y="5385" 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,5616 L 432,5760 L 792,5760 L 864,5616 Z"/>
<text x="648" y="5637" 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,5868 L 432,6012 L 864,6012 L 864,5868 Z"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="468,5868 468,6012"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="828,5868 828,6012"/>
<text x="648" y="5889" 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: 16 KiB

@ -0,0 +1,190 @@
<?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="2700" height="5184">
<rect x="0" y="0" width="2700" height="5184" 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,4788 756,4875"/>
<polygon fill="#404040" stroke="none" points="756,4896 776,4861 735,4861"/>
<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">save</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 612,4896 A 72 72, 0, 0 0, 612 5040 L 900,5040 A 72 72, 0, 0 0, 900 4896 Z"/>
<text x="756" y="4917" 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,828 756,915"/>
<polygon fill="#404040" stroke="none" points="756,936 776,901 735,901"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,1692 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,4032 756,4119"/>
<polygon fill="#404040" stroke="none" points="756,4140 776,4105 735,4105"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,4284 756,4371"/>
<polygon fill="#404040" stroke="none" points="756,4392 776,4357 735,4357"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,4536 756,4623"/>
<polygon fill="#404040" stroke="none" points="756,4644 776,4609 735,4609"/>
<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="#FFFFD0" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" d="M 504,648 L 504,828 L 1008,828 L 1008,648 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" points="504,684 1008,684"/>
<polyline fill="none" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" points="540,648 540,828"/>
<text x="774" y="705" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="774" dy="72" unicode-bidi="embed">&#25972;&#25968;&#20540; iCount</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1044,1116 1224,1116 1224,1347"/>
<polygon fill="#404040" stroke="none" points="1224,1368 1244,1333 1203,1333"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1224,1512 1224,1656 812,1656"/>
<polygon fill="#404040" stroke="none" points="792,1656 826,1676 826,1635"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="468,1116 288,1116 288,1656 699,1656"/>
<polygon fill="#404040" stroke="none" points="720,1656 685,1635 685,1676"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="5" stroke-dasharray="none" d="M 756,936 L 432,1116 L 756,1296 L 1080,1116 Z"/>
<text x="756" y="1065" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">PCur == NULL</tspan>
</text>
</g>
<g>
<path fill="#E0E0E0" stroke="#505050" stroke-width="5" stroke-dasharray="none" d="M 1080,1368 L 1008,1512 L 1368,1512 L 1440,1368 Z"/>
<text x="1224" y="1389" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1224" dy="72" unicode-bidi="embed">&#36755;&#20986;</tspan>
</text>
</g>
<g>
</g>
<ellipse cx="756" cy="1656" rx="36" ry="36" fill="#FFD0D0" stroke="#A07070" stroke-width="5"/>
<text x="1152" y="993" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1152" dy="72" unicode-bidi="embed">&#30495;</tspan>
</text>
<text x="360" y="993" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="360" dy="72" unicode-bidi="embed">&#20551;</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1152,2016 1332,2016 1332,2283"/>
<polygon fill="#404040" stroke="none" points="1332,2304 1352,2269 1311,2269"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1332,3240 1332,3996 812,3996"/>
<polygon fill="#404040" stroke="none" points="792,3996 826,4016 826,3975"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="360,2016 180,2016 180,3996 699,3996"/>
<polygon fill="#404040" stroke="none" points="720,3996 685,3975 685,4016"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="5" stroke-dasharray="none" d="M 756,1800 L 324,2016 L 756,2232 L 1188,2016 Z"/>
<text x="756" y="1965" 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,2448 1332,2535"/>
<polygon fill="#404040" stroke="none" points="1332,2556 1352,2521 1311,2521"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1332,2700 1332,2787"/>
<polygon fill="#404040" stroke="none" points="1332,2808 1352,2773 1311,2773"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1332,2952 1332,3075"/>
<polygon fill="#404040" stroke="none" points="1332,3096 1352,3061 1311,3061"/>
<g>
<path fill="#E0E0E0" stroke="#505050" stroke-width="5" stroke-dasharray="none" d="M 1188,2304 L 1116,2448 L 1476,2448 L 1548,2304 Z"/>
<text x="1332" y="2325" 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,2556 L 1116,2700 L 1548,2700 L 1548,2556 Z"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="1152,2556 1152,2700"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="1512,2556 1512,2700"/>
<text x="1332" y="2577" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1332" dy="72" unicode-bidi="embed">getchar()</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 1116,2808 L 1116,2952 L 1548,2952 L 1548,2808 Z"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="1152,2808 1152,2952"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="1512,2808 1512,2952"/>
<text x="1332" y="2829" 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>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1548,3168 2052,3168 2052,3291"/>
<polygon fill="#404040" stroke="none" points="2052,3312 2072,3277 2031,3277"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2052,3708 2052,3816 1404,3816 1404,3260"/>
<polygon fill="#404040" stroke="none" points="1404,3240 1383,3274 1424,3274"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2052,3456 2052,3543"/>
<polygon fill="#404040" stroke="none" points="2052,3564 2072,3529 2031,3529"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 1548,3312 L 1548,3456 L 2556,3456 L 2556,3312 Z"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="1584,3312 1584,3456"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="2520,3312 2520,3456"/>
<text x="2052" y="3333" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2052" dy="72" unicode-bidi="embed">fwrite(pCur, sizeof(Book),fp)</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 1728,3564 L 1728,3708 L 2376,3708 L 2376,3564 Z"/>
<text x="2052" y="3585" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2052" 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 1188,3096 L 1116,3168 L 1188,3240 L 1476,3240 L 1548,3168 L 1476,3096 Z"/>
<text x="1332" y="3117" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1332" dy="72" unicode-bidi="embed">PCur</tspan>
</text>
</g>
<text x="1620" y="3045" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1620" dy="72" unicode-bidi="embed">&#30495;</tspan>
</text>
<text x="1260" y="3261" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1260" dy="72" unicode-bidi="embed">&#20551;</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="756" cy="3996" rx="36" ry="36" fill="#FFD0D0" stroke="#A07070" stroke-width="5"/>
<text x="1260" y="1893" 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="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>
<path fill="#E0E0E0" stroke="#505050" stroke-width="5" stroke-dasharray="none" d="M 612,4140 L 540,4284 L 900,4284 L 972,4140 Z"/>
<text x="756" y="4161" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">&#36755;&#20986;</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="5" stroke-dasharray="none" d="M 540,4392 L 468,4536 L 972,4536 L 1044,4392 Z"/>
<text x="756" y="4413" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">&#36755;&#20986; iCount</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 540,4644 L 540,4788 L 972,4788 L 972,4644 Z"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="576,4644 576,4788"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="936,4644 936,4788"/>
<text x="756" y="4665" 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: 13 KiB

Loading…
Cancel
Save