return #13

Merged
mac76tib2 merged 1 commits from return into master 2 years ago

@ -416,7 +416,7 @@ C8:void foundReaderInfo(Reader* reader);\\查询读者信息
C9:Reader* LendBook(Reader* reader, Book* book);\\读者借书
![C9](images/LendBook.svg)
C10:void returnBook(Reader* reader, Book* book);\\读者还书
![C10](images/returnBook-开始.svg)
![C10](images/returnBook.svg)
C11:void save(Book* book);\\文件保存
C12:Book* read1();\\从文件读取

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

After

Width:  |  Height:  |  Size: 20 KiB

Loading…
Cancel
Save