孙艺哲 2 years ago
parent 0206e7273e
commit e79ca6c937

@ -702,6 +702,6 @@ C8:Reader* LendBook(Reader* reader, Book* book);\\读者借书
C9:void returnBook(Reader* reader, Book* book);\\读者还书 C9:void returnBook(Reader* reader, Book* book);\\读者还书
![999](returnBook.svg) ![999](returnBook.svg)
C10:void save(Book* book);\\文件保存 C10:void save(Book* book);\\文件保存
![000](save.svg)
C11:Book* read1();\\从文件读取 C11:Book* read1();\\从文件读取

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