Compare commits

...

36 Commits

Author SHA1 Message Date
mac76tib2 ec019b2e4c Merge pull request '流程图' (#20) from c5流程图 into master
2 years ago
张江楠 64942727bd 流程图
2 years ago
mac76tib2 0b0e993911 Merge pull request 'read' (#16) from read into master
2 years ago
mac76tib2 de38d09338 Merge pull request '流程图' (#13) from 流程图1 into master
2 years ago
孙艺哲 1057f545f4 read
2 years ago
孙艺哲 e79ca6c937 save
2 years ago
孙艺哲 0206e7273e c10
2 years ago
张江楠 c721617140 流程图
2 years ago
张江楠 4fe8bcae21 流程图1
2 years ago
张江楠 9083c4aa91 流程图
2 years ago
mac76tib2 34056479a3 Merge pull request 'C8' (#11) from 流程图C8 into master
2 years ago
mac76tib2 2c4d28f682 Update README.md
2 years ago
mac76tib2 bca0e32403 Merge pull request 'C5' (#12) from 流程图C5 into master
2 years ago
mac76tib2 7b058132ce Merge pull request '流程图C6' (#8) from 流程图C6 into master
2 years ago
郭佳慧 27a3665925 流程图C8
2 years ago
郭佳慧 3c09a3ee39 流程图C7
2 years ago
郭佳慧 239f30155f 流程图C5
2 years ago
郭佳慧 216a0b82ea 流程图C6
2 years ago
郭佳慧 3823918475 C6
2 years ago
郭佳慧 eaa84a93cd C6
2 years ago
王昊 756ad99097 dd
2 years ago
王昊 fd9aed635d kuang
2 years ago
王昊 40362ca5cb tu
2 years ago
王昊 dbb0ebec0d xiugai
2 years ago
mac76tib2 9136285639 Merge pull request 'C6C7C8C9' (#7) from C6C7C8C9 into master
2 years ago
mac76tib2 b1f200c1ee Merge pull request 'C10-12' (#6) from C10-12 into master
2 years ago
郭佳慧 e4019618d5 C6C7C8C9
2 years ago
mac76tib2 26e65a4da2 Merge pull request 'c2c3c4c5' (#5) from c1c2c3c4 into master
2 years ago
mac76tib2 29f791a128 Update README.md
2 years ago
mac76tib2 efb7240154 Merge pull request 'C6—C9' (#3) from 111 into master
2 years ago
mac76tib2 a8f13d667f Merge pull request 'C10-12' (#4) from C10-12 into master
2 years ago
郭佳慧 9bc4389dc1 C6C7C8C9
2 years ago
mac76tib2 7178c5eecd Merge pull request 'C2C3C4C5' (#2) from C2C3C4C5 into master
2 years ago
王昊 50567a4b55 c1
2 years ago
张江楠 77573a7be6 c2c3c4c5
2 years ago
张江楠 755f91c8f1 C2C3C4C5
2 years ago

@ -0,0 +1,184 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="2556" height="4860">
<rect x="0" y="0" width="2556" height="4860" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,288 756,375"/>
<polygon fill="#404040" stroke="none" points="756,396 776,361 735,361"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,4464 756,4551"/>
<polygon fill="#404040" stroke="none" points="756,4572 776,4537 735,4537"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 612,144 A 72 72, 0, 0 0, 612 288 L 900,288 A 72 72, 0, 0 0, 900 144 Z"/>
<text x="756" y="165" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">Bookread</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 612,4572 A 72 72, 0, 0 0, 612 4716 L 900,4716 A 72 72, 0, 0 0, 900 4572 Z"/>
<text x="756" y="4593" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">&#32467;&#26463;</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,540 756,627"/>
<polygon fill="#404040" stroke="none" points="756,648 776,613 735,613"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,792 756,879"/>
<polygon fill="#404040" stroke="none" points="756,900 776,865 735,865"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,1044 756,1131"/>
<polygon fill="#404040" stroke="none" points="756,1152 776,1117 735,1117"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,1296 756,1383"/>
<polygon fill="#404040" stroke="none" points="756,1404 776,1369 735,1369"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,2484 756,2571"/>
<polygon fill="#404040" stroke="none" points="756,2592 776,2557 735,2557"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,2808 756,2895"/>
<polygon fill="#404040" stroke="none" points="756,2916 776,2881 735,2881"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,3132 756,4299"/>
<polygon fill="#404040" stroke="none" points="756,4320 776,4285 735,4285"/>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="5" stroke-dasharray="none" d="M 576,396 A 36 72, 0, 0 0, 576 540 L 972,540 A 36 72, 0, 0 1, 972 396 Z"/>
<text x="756" y="417" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">&#38405;&#35835;FILE</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 396,648 L 396,792 L 1116,792 L 1116,648 Z"/>
<text x="756" y="669" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">Book pHead = NULL</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 468,900 L 468,1044 L 1044,1044 L 1044,900 Z"/>
<text x="756" y="921" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">* pTemp = NULL</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 468,1152 L 468,1296 L 1044,1296 L 1044,1152 Z"/>
<text x="756" y="1173" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">*pTemp = NULL</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1152,1620 1332,1620 1332,1887"/>
<polygon fill="#404040" stroke="none" points="1332,1908 1352,1873 1311,1873"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1332,2304 1332,2448 812,2448"/>
<polygon fill="#404040" stroke="none" points="792,2448 826,2468 826,2427"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="360,1620 180,1620 180,2448 699,2448"/>
<polygon fill="#404040" stroke="none" points="720,2448 685,2427 685,2468"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="5" stroke-dasharray="none" d="M 756,1404 L 324,1620 L 756,1836 L 1188,1620 Z"/>
<text x="756" y="1569" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">fp = fopen() == NULL</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1332,2052 1332,2139"/>
<polygon fill="#404040" stroke="none" points="1332,2160 1352,2125 1311,2125"/>
<g>
<path fill="#E0E0E0" stroke="#505050" stroke-width="5" stroke-dasharray="none" d="M 1188,1908 L 1116,2052 L 1476,2052 L 1548,1908 Z"/>
<text x="1332" y="1929" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1332" dy="72" unicode-bidi="embed">&#36755;&#20986;</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 1116,2160 L 1116,2304 L 1548,2304 L 1548,2160 Z"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="1152,2160 1152,2304"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="1512,2160 1512,2304"/>
<text x="1332" y="2181" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1332" dy="72" unicode-bidi="embed">exit()</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="756" cy="2448" rx="36" ry="36" fill="#FFD0D0" stroke="#A07070" stroke-width="5"/>
<text x="1260" y="1497" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1260" dy="72" unicode-bidi="embed">&#30495;</tspan>
</text>
<text x="252" y="1497" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="252" dy="72" unicode-bidi="embed">&#20551;</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 360,2592 L 360,2808 L 1152,2808 L 1152,2592 Z"/>
<text x="756" y="2613" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">pTemp = (Book*)malloc</tspan>
<tspan x="756" dy="72" unicode-bidi="embed">(sizeof(Book))</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1188,3024 1800,3024 1800,3183"/>
<polygon fill="#404040" stroke="none" points="1800,3204 1820,3169 1779,3169"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1800,4068 1800,4176 828,4176 828,3152"/>
<polygon fill="#404040" stroke="none" points="828,3132 807,3166 848,3166"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1980,3312 2160,3312 2160,3471"/>
<polygon fill="#404040" stroke="none" points="2160,3492 2180,3457 2139,3457"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2160,3636 2160,4032 1856,4032"/>
<polygon fill="#404040" stroke="none" points="1836,4032 1870,4052 1870,4011"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1620,3312 1368,3312 1368,3471"/>
<polygon fill="#404040" stroke="none" points="1368,3492 1388,3457 1347,3457"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1368,3888 1368,4032 1743,4032"/>
<polygon fill="#404040" stroke="none" points="1764,4032 1729,4011 1729,4052"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="5" stroke-dasharray="none" d="M 1800,3204 L 1584,3312 L 1800,3420 L 2016,3312 Z"/>
<text x="1800" y="3261" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1800" dy="72" unicode-bidi="embed">!pHead</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" d="M 1908,3492 L 1908,3636 L 2412,3636 L 2412,3492 Z"/>
<text x="2160" y="3513" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2160" dy="72" unicode-bidi="embed">pHead = pCur</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1368,3636 1368,3723"/>
<polygon fill="#404040" stroke="none" points="1368,3744 1388,3709 1347,3709"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 1008,3492 L 1008,3636 L 1728,3636 L 1728,3492 Z"/>
<text x="1368" y="3513" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1368" dy="72" unicode-bidi="embed">pCur-&gt;next = pTemp</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" d="M 1116,3744 L 1116,3888 L 1620,3888 L 1620,3744 Z"/>
<text x="1368" y="3765" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1368" dy="72" unicode-bidi="embed">pCur = pTemp</tspan>
</text>
</g>
</g>
<ellipse cx="1800" cy="4032" rx="36" ry="36" fill="#FFD0D0" stroke="#A07070" stroke-width="5"/>
<text x="2088" y="3189" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2088" dy="72" unicode-bidi="embed">&#30495;</tspan>
</text>
<text x="1512" y="3189" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1512" dy="72" unicode-bidi="embed">&#20551;</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="5" stroke-dasharray="none" d="M 432,2916 L 324,3024 L 432,3132 L 1080,3132 L 1188,3024 L 1080,2916 Z"/>
<text x="756" y="2937" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">fread(pTemp, sizeof</tspan>
<tspan x="756" dy="72" unicode-bidi="embed">(Book),1,fp)</tspan>
</text>
</g>
<text x="1260" y="2901" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1260" dy="72" unicode-bidi="embed">&#30495;</tspan>
</text>
<text x="684" y="3153" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="684" dy="72" unicode-bidi="embed">&#20551;</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 540,4320 L 540,4464 L 972,4464 L 972,4320 Z"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="576,4320 576,4464"/>
<polyline fill="none" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" points="936,4320 936,4464"/>
<text x="756" y="4341" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">fclose(fp)</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 12 KiB

@ -0,0 +1,671 @@
<?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="9984" height="24816">
<rect x="0" y="0" width="9984" height="24816" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,384 1872,501"/>
<polygon fill="#404040" stroke="none" points="1872,528 1898,481 1845,481"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,24288 1872,24405"/>
<polygon fill="#404040" stroke="none" points="1872,24432 1898,24385 1845,24385"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="6" stroke-dasharray="none" d="M 1632,192 A 96 96, 0, 0 0, 1632 384 L 2112,384 A 96 96, 0, 0 0, 2112 192 Z"/>
<text x="1872" y="220" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">LendBook</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="6" stroke-dasharray="none" d="M 1680,24432 A 96 96, 0, 0 0, 1680 24624 L 2064,24624 A 96 96, 0, 0 0, 2064 24432 Z"/>
<text x="1872" y="24460" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">End</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,768 1872,885"/>
<polygon fill="#404040" stroke="none" points="1872,912 1898,865 1845,865"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,1152 1872,1269"/>
<polygon fill="#404040" stroke="none" points="1872,1296 1898,1249 1845,1249"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,1536 1872,1653"/>
<polygon fill="#404040" stroke="none" points="1872,1680 1898,1633 1845,1633"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,1872 1872,1989"/>
<polygon fill="#404040" stroke="none" points="1872,2016 1898,1969 1845,1969"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,2208 1872,2325"/>
<polygon fill="#404040" stroke="none" points="1872,2352 1898,2305 1845,2305"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,5616 1872,5733"/>
<polygon fill="#404040" stroke="none" points="1872,5760 1898,5713 1845,5713"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,7152 1872,7317"/>
<polygon fill="#404040" stroke="none" points="1872,7344 1898,7297 1845,7297"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,7536 1872,8133"/>
<polygon fill="#404040" stroke="none" points="1872,8160 1898,8113 1845,8113"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,8400 1872,8517"/>
<polygon fill="#404040" stroke="none" points="1872,8544 1898,8497 1845,8497"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,8736 1872,8853"/>
<polygon fill="#404040" stroke="none" points="1872,8880 1898,8833 1845,8833"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,9072 1872,9237"/>
<polygon fill="#404040" stroke="none" points="1872,9264 1898,9217 1845,9217"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,9456 1872,14373"/>
<polygon fill="#404040" stroke="none" points="1872,14400 1898,14353 1845,14353"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,14592 1872,14709"/>
<polygon fill="#404040" stroke="none" points="1872,14736 1898,14689 1845,14689"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,14928 1872,15045"/>
<polygon fill="#404040" stroke="none" points="1872,15072 1898,15025 1845,15025"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1872,15264 1872,15381"/>
<polygon fill="#404040" stroke="none" points="1872,15408 1898,15361 1845,15361"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" d="M 1488,528 L 1488,768 L 2256,768 L 2256,528 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="1488,576 2256,576"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="1536,528 1536,768"/>
<text x="1896" y="604" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1896" dy="96" unicode-bidi="embed">String reader1</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" d="M 1536,912 L 1536,1152 L 2208,1152 L 2208,912 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="1536,960 2208,960"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="1584,912 1584,1152"/>
<text x="1896" y="988" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1896" dy="96" unicode-bidi="embed">String book1</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" d="M 1584,1296 L 1584,1536 L 2160,1536 L 2160,1296 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="1584,1344 2160,1344"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="1632,1296 1632,1536"/>
<text x="1896" y="1372" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1896" dy="96" unicode-bidi="embed">Integer id</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 1680,1680 L 1584,1872 L 2064,1872 L 2160,1680 Z"/>
<text x="1872" y="1708" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">Input id</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 1584,2016 L 1488,2208 L 2160,2208 L 2256,2016 Z"/>
<text x="1872" y="2044" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">Input reader</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2304,2592 3216,2592 3216,2901"/>
<polygon fill="#404040" stroke="none" points="3216,2928 3242,2881 3189,2881"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3216,5376 3216,5568 1946,5568"/>
<polygon fill="#404040" stroke="none" points="1920,5568 1966,5594 1966,5541"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1440,2592 1056,2592 1056,5568 1797,5568"/>
<polygon fill="#404040" stroke="none" points="1824,5568 1777,5541 1777,5594"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="6" stroke-dasharray="none" d="M 1872,2352 L 1392,2592 L 1872,2832 L 2352,2592 Z"/>
<text x="1872" y="2524" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">reader == NULL</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3216,4368 3216,4485"/>
<polygon fill="#404040" stroke="none" points="3216,4512 3242,4465 3189,4465"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3216,4704 3216,4821"/>
<polygon fill="#404040" stroke="none" points="3216,4848 3242,4801 3189,4801"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3216,5040 3216,5157"/>
<polygon fill="#404040" stroke="none" points="3216,5184 3242,5137 3189,5137"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 2688,2928 L 1968,4368 L 3744,4368 L 4464,2928 Z"/>
<text x="3216" y="2956" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3216" dy="96" unicode-bidi="embed">Output Reader* tmp =</tspan>
<tspan x="3216" dy="96" unicode-bidi="embed"> (Reader*)malloc(sizeof</tspan>
<tspan x="3216" dy="96" unicode-bidi="embed">(Reader));</tspan>
<tspan x="3216" dy="96" unicode-bidi="embed"></tspan>
<tspan x="3216" dy="96" unicode-bidi="embed"> &#13;</tspan>
<tspan x="3216" dy="96" unicode-bidi="embed"> tmp-&gt;next = NULL</tspan>
<tspan x="3216" dy="96" unicode-bidi="embed">;</tspan>
<tspan x="3216" dy="96" unicode-bidi="embed"></tspan>
<tspan x="3216" dy="96" unicode-bidi="embed"> &#13;</tspan>
<tspan x="3216" dy="96" unicode-bidi="embed"> tmp-&gt;iAmount =</tspan>
<tspan x="3216" dy="96" unicode-bidi="embed"> 0;</tspan>
<tspan x="3216" dy="96" unicode-bidi="embed"></tspan>
<tspan x="3216" dy="96" unicode-bidi="embed">&#13;</tspan>
<tspan x="3216" dy="96" unicode-bidi="embed"> tmp-&gt;iNum = id;</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 2880,4512 L 2784,4704 L 3552,4704 L 3648,4512 Z"/>
<text x="3216" y="4540" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3216" dy="96" unicode-bidi="embed">Input &#35835;&#32773;&#21517;&#23383;</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 2880,4848 L 2784,5040 L 3552,5040 L 3648,4848 Z"/>
<text x="3216" y="4876" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3216" dy="96" unicode-bidi="embed">Input &#35835;&#32773;&#24615;&#21035;</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 2880,5184 L 2784,5376 L 3552,5376 L 3648,5184 Z"/>
<text x="3216" y="5212" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3216" dy="96" unicode-bidi="embed">Input &#35835;&#32773;&#32844;&#20301;</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="1872" cy="5568" rx="48" ry="48" fill="#FFD0D0" stroke="#A07070" stroke-width="6"/>
<text x="2496" y="2428" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2496" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="1224" y="2428" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1224" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2496,6096 2832,6096 2832,6501"/>
<polygon fill="#404040" stroke="none" points="2832,6528 2858,6481 2805,6481"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2832,6912 2832,7104 1946,7104"/>
<polygon fill="#404040" stroke="none" points="1920,7104 1966,7130 1966,7077"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1248,6096 864,6096 864,6501"/>
<polygon fill="#404040" stroke="none" points="864,6528 890,6481 837,6481"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="864,6912 864,7104 1797,7104"/>
<polygon fill="#404040" stroke="none" points="1824,7104 1777,7077 1777,7130"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 1872,5760 L 1200,6096 L 1872,6432 L 2544,6096 Z"/>
<text x="1872" y="5980" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">strcmp(tmp-&gt;position,</tspan>
<tspan x="1872" dy="96" unicode-bidi="embed"> &quot;student&quot;==0</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 2496,6528 L 2304,6912 L 3168,6912 L 3360,6528 Z"/>
<text x="2832" y="6556" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2832" dy="96" unicode-bidi="embed">Output iMax =</tspan>
<tspan x="2832" dy="96" unicode-bidi="embed"> 20;</tspan>
<tspan x="2832" dy="96" unicode-bidi="embed">day = 30;</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 432,6528 L 240,6912 L 1296,6912 L 1488,6528 Z"/>
<text x="864" y="6556" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="864" dy="96" unicode-bidi="embed">Output tmp-&gt;iMax =</tspan>
<tspan x="864" dy="96" unicode-bidi="embed"> 40;</tspan>
<tspan x="864" dy="96" unicode-bidi="embed"> tmp-&gt;day = 60;</tspan>
</text>
</g>
<ellipse cx="1872" cy="7104" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="2688" y="5932" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2688" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="1032" y="5932" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1032" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2256,7440 2880,7440 2880,7605"/>
<polygon fill="#404040" stroke="none" points="2880,7632 2906,7585 2853,7585"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2880,7824 2880,7968 1968,7968 1968,7562"/>
<polygon fill="#404040" stroke="none" points="1968,7536 1941,7582 1994,7582"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 2256,7632 L 2160,7824 L 3504,7824 L 3600,7632 Z"/>
<text x="2880" y="7660" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2880" dy="96" unicode-bidi="embed">Output tmp-&gt;aiBookId[i] = 0</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="6" stroke-dasharray="none" d="M 1584,7344 L 1488,7440 L 1584,7536 L 2160,7536 L 2256,7440 L 2160,7344 Z"/>
<text x="1872" y="7372" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">i = 0 to iMax</tspan>
</text>
</g>
<text x="2400" y="7276" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2400" dy="96" unicode-bidi="embed">Next</tspan>
</text>
<text x="1704" y="7564" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1704" dy="96" unicode-bidi="embed">Done</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" d="M 1488,8160 L 1488,8400 L 2256,8400 L 2256,8160 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="1488,8208 2256,8208"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="1536,8160 1536,8400"/>
<text x="1896" y="8236" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1896" dy="96" unicode-bidi="embed">Integer idbook</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 1584,8544 L 1488,8736 L 2160,8736 L 2256,8544 Z"/>
<text x="1872" y="8572" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">Input idbook</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 1584,8880 L 1488,9072 L 2160,9072 L 2256,8880 Z"/>
<text x="1872" y="8908" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">Input book</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2304,9360 3696,9360 3696,9525"/>
<polygon fill="#404040" stroke="none" points="3696,9552 3722,9505 3669,9505"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3696,14064 3696,14208 1968,14208 1968,9482"/>
<polygon fill="#404040" stroke="none" points="1968,9456 1941,9502 1994,9502"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4272,9888 4992,9888 4992,10293"/>
<polygon fill="#404040" stroke="none" points="4992,10320 5018,10273 4965,10273"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4992,13824 4992,14016 3770,14016"/>
<polygon fill="#404040" stroke="none" points="3744,14016 3790,14042 3790,13989"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3120,9888 2736,9888 2736,10293"/>
<polygon fill="#404040" stroke="none" points="2736,10320 2762,10273 2709,10273"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2736,10848 2736,14016 3621,14016"/>
<polygon fill="#404040" stroke="none" points="3648,14016 3601,13989 3601,14042"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 3696,9552 L 3072,9888 L 3696,10224 L 4320,9888 Z"/>
<text x="3696" y="9820" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3696" dy="96" unicode-bidi="embed">id_book == book-&gt;iNum</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4992,11856 4992,11973"/>
<polygon fill="#404040" stroke="none" points="4992,12000 5018,11953 4965,11953"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="5520,10608 5856,10608 5856,10965"/>
<polygon fill="#404040" stroke="none" points="5856,10992 5882,10945 5829,10945"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="5856,11616 5856,11808 5066,11808"/>
<polygon fill="#404040" stroke="none" points="5040,11808 5086,11834 5086,11781"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4464,10608 4080,10608 4080,11808 4917,11808"/>
<polygon fill="#404040" stroke="none" points="4944,11808 4897,11781 4897,11834"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 4992,10320 L 4416,10608 L 4992,10896 L 5568,10608 Z"/>
<text x="4992" y="10540" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4992" dy="96" unicode-bidi="embed">book-&gt;iAmount &lt;= 1</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="5856,11280 5856,11397"/>
<polygon fill="#404040" stroke="none" points="5856,11424 5882,11377 5829,11377"/>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 5280,10992 L 5136,11280 L 6432,11280 L 6576,10992 Z"/>
<text x="5856" y="11020" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5856" dy="96" unicode-bidi="embed">Output</tspan>
<tspan x="5856" dy="96" unicode-bidi="embed"> &#20511;&#38405;&#22833;&#36133;&#35813;&#22270;&#20070;&#24211;&#23384;&#19981;&#36275;</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 5424,11424 L 5328,11616 L 6288,11616 L 6384,11424 Z"/>
<text x="5856" y="11452" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5856" dy="96" unicode-bidi="embed">Output &#36820;&#22238;NULL</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="4992" cy="11808" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="5712" y="10444" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5712" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="4248" y="10444" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4248" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="5760,12432 6096,12432 6096,12933"/>
<polygon fill="#404040" stroke="none" points="6096,12960 6122,12913 6069,12913"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="6096,13584 6096,13776 5066,13776"/>
<polygon fill="#404040" stroke="none" points="5040,13776 5086,13802 5086,13749"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4224,12432 3840,12432 3840,13776 4917,13776"/>
<polygon fill="#404040" stroke="none" points="4944,13776 4897,13749 4897,13802"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 4992,12000 L 4176,12432 L 4992,12864 L 5808,12432 Z"/>
<text x="4992" y="12316" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4992" dy="96" unicode-bidi="embed">(tmp-&gt;iAmount) + 1 &gt; tmp-&gt;</tspan>
<tspan x="4992" dy="96" unicode-bidi="embed">iMax</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="6096,13248 6096,13365"/>
<polygon fill="#404040" stroke="none" points="6096,13392 6122,13345 6069,13345"/>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 5280,12960 L 5136,13248 L 6912,13248 L 7056,12960 Z"/>
<text x="6096" y="12988" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="6096" dy="96" unicode-bidi="embed">Output</tspan>
<tspan x="6096" dy="96" unicode-bidi="embed"> &#20511;&#38405;&#22833;&#36133;&#35813;&#35835;&#32773;&#20511;&#38405;&#22270;&#20070;&#25968;&#37327;&#24050;&#36798;&#19978;&#32447;</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 5664,13392 L 5568,13584 L 6528,13584 L 6624,13392 Z"/>
<text x="6096" y="13420" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="6096" dy="96" unicode-bidi="embed">Output &#36820;&#22238;NULL</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="4992" cy="13776" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="5952" y="12268" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5952" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="4008" y="12268" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4008" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2736,10512 2736,10629"/>
<polygon fill="#404040" stroke="none" points="2736,10656 2762,10609 2709,10609"/>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 2352,10320 L 2256,10512 L 3120,10512 L 3216,10320 Z"/>
<text x="2736" y="10348" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2736" dy="96" unicode-bidi="embed">Output &#20511;&#38405;&#25104;&#21151;</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 2304,10656 L 2208,10848 L 3168,10848 L 3264,10656 Z"/>
<text x="2736" y="10684" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2736" dy="96" unicode-bidi="embed">Output &#36820;&#22238;reader</tspan>
</text>
</g>
</g>
<ellipse cx="3696" cy="14016" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="4464" y="9724" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4464" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="2904" y="9724" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2904" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="6" stroke-dasharray="none" d="M 1536,9264 L 1440,9360 L 1536,9456 L 2208,9456 L 2304,9360 L 2208,9264 Z"/>
<text x="1872" y="9292" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">book!=NULL</tspan>
</text>
</g>
<text x="2448" y="9196" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2448" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="1704" y="9484" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1704" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 1296,14400 L 1200,14592 L 2448,14592 L 2544,14400 Z"/>
<text x="1872" y="14428" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">Output book = book-&gt;next</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 1392,14736 L 1296,14928 L 2352,14928 L 2448,14736 Z"/>
<text x="1872" y="14764" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">Output &#27809;&#26377;&#25214;&#21040;&#35813;&#20070;</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 1440,15072 L 1344,15264 L 2304,15264 L 2400,15072 Z"/>
<text x="1872" y="15100" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">Output &#36820;&#22238;reader1</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2256,15648 2592,15648 2592,16005"/>
<polygon fill="#404040" stroke="none" points="2592,16032 2618,15985 2565,15985"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2592,24048 2592,24240 1946,24240"/>
<polygon fill="#404040" stroke="none" points="1920,24240 1966,24266 1966,24213"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1488,15648 1104,15648 1104,15957"/>
<polygon fill="#404040" stroke="none" points="1104,15984 1130,15937 1077,15937"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1104,16272 1104,24240 1797,24240"/>
<polygon fill="#404040" stroke="none" points="1824,24240 1777,24213 1777,24266"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="6" stroke-dasharray="none" d="M 1872,15408 L 1440,15648 L 1872,15888 L 2304,15648 Z"/>
<text x="1872" y="15580" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="96" unicode-bidi="embed">reader!=NULL</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2592,16224 2592,23493"/>
<polygon fill="#404040" stroke="none" points="2592,23520 2618,23473 2565,23473"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2592,23712 2592,23829"/>
<polygon fill="#404040" stroke="none" points="2592,23856 2618,23809 2565,23809"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3072,16128 4512,16128 4512,16293"/>
<polygon fill="#404040" stroke="none" points="4512,16320 4538,16273 4485,16273"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4512,23184 4512,23328 2688,23328 2688,16250"/>
<polygon fill="#404040" stroke="none" points="2688,16224 2661,16270 2714,16270"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4512,22848 4512,22965"/>
<polygon fill="#404040" stroke="none" points="4512,22992 4538,22945 4485,22945"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4992,16608 5328,16608 5328,16965"/>
<polygon fill="#404040" stroke="none" points="5328,16992 5354,16945 5301,16945"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="5328,17904 5328,22800 4586,22800"/>
<polygon fill="#404040" stroke="none" points="4560,22800 4606,22826 4606,22773"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4032,16608 3648,16608 3648,16965"/>
<polygon fill="#404040" stroke="none" points="3648,16992 3674,16945 3621,16945"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3648,17952 3648,22800 4437,22800"/>
<polygon fill="#404040" stroke="none" points="4464,22800 4417,22773 4417,22826"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 4512,16320 L 3984,16608 L 4512,16896 L 5040,16608 Z"/>
<text x="4512" y="16540" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4512" dy="96" unicode-bidi="embed">id == reader-&gt;iNum</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="5328,17184 5328,17301"/>
<polygon fill="#404040" stroke="none" points="5328,17328 5354,17281 5301,17281"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="5328,17520 5328,17685"/>
<polygon fill="#404040" stroke="none" points="5328,17712 5354,17665 5301,17665"/>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 4704,16992 L 4608,17184 L 5952,17184 L 6048,16992 Z"/>
<text x="5328" y="17020" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5328" dy="96" unicode-bidi="embed">Output &#22270;&#20351;&#39302;&#24403;&#21069;&#30340;&#20070;&#20876;&#31821;</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 4848,17328 L 4752,17520 L 5808,17520 L 5904,17328 Z"/>
<text x="5328" y="17356" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5328" dy="96" unicode-bidi="embed">Input &#35201;&#20511;&#30340;&#20070;&#30340;&#32534;&#21495;</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="5760,17808 6624,17808 6624,17973"/>
<polygon fill="#404040" stroke="none" points="6624,18000 6650,17953 6597,17953"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="6624,22416 6624,22560 5424,22560 5424,17930"/>
<polygon fill="#404040" stroke="none" points="5424,17904 5397,17950 5450,17950"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="7200,18336 7920,18336 7920,18741"/>
<polygon fill="#404040" stroke="none" points="7920,18768 7946,18721 7893,18721"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="7920,22176 7920,22368 6698,22368"/>
<polygon fill="#404040" stroke="none" points="6672,22368 6718,22394 6718,22341"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="6048,18336 5664,18336 5664,22368 6549,22368"/>
<polygon fill="#404040" stroke="none" points="6576,22368 6529,22341 6529,22394"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 6624,18000 L 6000,18336 L 6624,18672 L 7248,18336 Z"/>
<text x="6624" y="18268" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="6624" dy="96" unicode-bidi="embed">id_book == book-&gt;iNum</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="7920,20208 7920,20325"/>
<polygon fill="#404040" stroke="none" points="7920,20352 7946,20305 7893,20305"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="8448,19056 8784,19056 8784,19413"/>
<polygon fill="#404040" stroke="none" points="8784,19440 8810,19393 8757,19393"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="8784,19968 8784,20160 7994,20160"/>
<polygon fill="#404040" stroke="none" points="7968,20160 8014,20186 8014,20133"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="7392,19056 7008,19056 7008,20160 7845,20160"/>
<polygon fill="#404040" stroke="none" points="7872,20160 7825,20133 7825,20186"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 7920,18768 L 7344,19056 L 7920,19344 L 8496,19056 Z"/>
<text x="7920" y="18988" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="7920" dy="96" unicode-bidi="embed">book-&gt;iAmount &lt;= 1</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="8784,19632 8784,19749"/>
<polygon fill="#404040" stroke="none" points="8784,19776 8810,19729 8757,19729"/>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 8400,19440 L 8304,19632 L 9168,19632 L 9264,19440 Z"/>
<text x="8784" y="19468" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="8784" dy="96" unicode-bidi="embed">Output &#20511;&#38405;&#22833;&#36133;</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 8304,19776 L 8208,19968 L 9264,19968 L 9360,19776 Z"/>
<text x="8784" y="19804" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="8784" dy="96" unicode-bidi="embed">Output returnreader1</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="7920" cy="20160" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="8640" y="18892" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="8640" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="7176" y="18892" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="7176" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="8688,20784 9024,20784 9024,21285"/>
<polygon fill="#404040" stroke="none" points="9024,21312 9050,21265 8997,21265"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="9024,21936 9024,22128 7994,22128"/>
<polygon fill="#404040" stroke="none" points="7968,22128 8014,22154 8014,22101"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="7152,20784 6768,20784 6768,22128 7845,22128"/>
<polygon fill="#404040" stroke="none" points="7872,22128 7825,22101 7825,22154"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 7920,20352 L 7104,20784 L 7920,21216 L 8736,20784 Z"/>
<text x="7920" y="20668" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="7920" dy="96" unicode-bidi="embed">(tmpp-&gt;iAmount + 1 &gt; tmpp</tspan>
<tspan x="7920" dy="96" unicode-bidi="embed">-&gt;iMax</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="9024,21600 9024,21717"/>
<polygon fill="#404040" stroke="none" points="9024,21744 9050,21697 8997,21697"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 8400,21312 L 8256,21600 L 9648,21600 L 9792,21312 Z"/>
<text x="9024" y="21340" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="9024" dy="96" unicode-bidi="embed">Output &#20511;&#38405;&#22833;&#36133;,</tspan>
<tspan x="9024" dy="96" unicode-bidi="embed">&#35813;&#35835;&#32773;&#20511;&#38405;&#22270;&#20070;&#25968;&#37327;&#24050;&#36798;&#19978;&#32447;</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 8592,21744 L 8496,21936 L 9456,21936 L 9552,21744 Z"/>
<text x="9024" y="21772" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="9024" dy="96" unicode-bidi="embed">Output &#36820;&#22238;reader1</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="7920" cy="22128" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="8880" y="20620" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="8880" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="6936" y="20620" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="6936" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="6624" cy="22368" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="7392" y="18172" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="7392" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="5832" y="18172" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5832" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="6" stroke-dasharray="none" d="M 4992,17712 L 4896,17808 L 4992,17904 L 5664,17904 L 5760,17808 L 5664,17712 Z"/>
<text x="5328" y="17740" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5328" dy="96" unicode-bidi="embed">book!=NULL</tspan>
</text>
</g>
<text x="5904" y="17644" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5904" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="5160" y="17932" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5160" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3648,17184 3648,17301"/>
<polygon fill="#404040" stroke="none" points="3648,17328 3674,17281 3621,17281"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3648,17616 3648,17733"/>
<polygon fill="#404040" stroke="none" points="3648,17760 3674,17713 3621,17713"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 3072,16992 L 2976,17184 L 4224,17184 L 4320,16992 Z"/>
<text x="3648" y="17020" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3648" dy="96" unicode-bidi="embed">Output reader-&gt;iAmount++</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 3072,17328 L 2928,17616 L 4224,17616 L 4368,17328 Z"/>
<text x="3648" y="17356" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3648" dy="96" unicode-bidi="embed">Output reader-&gt;aiBookId</tspan>
<tspan x="3648" dy="96" unicode-bidi="embed">[tmpp-&gt;iAmount] = id_book</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 3216,17760 L 3120,17952 L 4080,17952 L 4176,17760 Z"/>
<text x="3648" y="17788" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3648" dy="96" unicode-bidi="embed">Output &#36820;&#22238;reader1</tspan>
</text>
</g>
</g>
<ellipse cx="4512" cy="22800" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="5184" y="16444" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5184" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="3816" y="16444" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3816" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 3936,22992 L 3840,23184 L 5088,23184 L 5184,22992 Z"/>
<text x="4512" y="23020" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4512" dy="96" unicode-bidi="embed">Output book = book-&gt;next</tspan>
</text>
</g>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="6" stroke-dasharray="none" d="M 2208,16032 L 2112,16128 L 2208,16224 L 2976,16224 L 3072,16128 L 2976,16032 Z"/>
<text x="2592" y="16060" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2592" dy="96" unicode-bidi="embed">reader != NULL</tspan>
</text>
</g>
<text x="3216" y="15964" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3216" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="2424" y="16252" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2424" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 2112,23520 L 2016,23712 L 3072,23712 L 3168,23520 Z"/>
<text x="2592" y="23548" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2592" dy="96" unicode-bidi="embed">Output &#27809;&#26377;&#25214;&#21040;&#35813;&#20070;</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 2112,23856 L 2016,24048 L 3072,24048 L 3168,23856 Z"/>
<text x="2592" y="23884" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2592" dy="96" unicode-bidi="embed">Output &#25353;&#20219;&#24847;&#38190;&#36820;&#22238;</tspan>
</text>
</g>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 576,15984 L 432,16272 L 1632,16272 L 1776,15984 Z"/>
<text x="1104" y="16012" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1104" dy="96" unicode-bidi="embed">Output reader = reader-&gt;</tspan>
<tspan x="1104" dy="96" unicode-bidi="embed">next</tspan>
</text>
</g>
<ellipse cx="1872" cy="24240" rx="48" ry="48" fill="#FFD0D0" stroke="#A07070" stroke-width="6"/>
<text x="2448" y="15484" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2448" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="1272" y="15484" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1272" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 47 KiB

@ -9,17 +9,15 @@
下载地址https://bdgit.educoder.net/mac76tib2/test.git 下载地址https://bdgit.educoder.net/mac76tib2/test.git
项目开发过程中采用 Kanban看板进行任务管理和分工协作并使用 Git 对程序代码和文档进行版本管理。任务分工情况如下: 项目开发过程中采用 Kanban看板进行任务管理和分工协作并使用 Git 对程序代码和文档进行版本管理。任务分工情况如下:
| 任务 | 设计 | 开发 | 测试 | 文档 | | 任务 | 设计 | 开发 | 测试 | 文档 |
| | | | | |------|-----|------|------|-----|
| | | | | | C1 | 王昊 | 王昊 | 张江楠 | 郭佳慧 |
| | | | | | C2·C3·C4·C5 | 张江楠 | 张江楠 | 郭佳慧 | 孙艺哲 |
| | | | | | C6·C7·C8·C9 | 郭佳慧 | 郭佳慧 | 孙艺哲 | 王昊 |
| | | | | | C10·C11·C12 | 孙艺哲 | 孙艺哲 | 王昊 | 张江楠 |
| | | | |
| | | | |
| | | | |
| | | | |
每个成员工作量(百分比): 每个成员工作量(百分比):
| 王昊 | 张江楠 | 郭佳慧 | 孙艺哲 | | 王昊 | 张江楠 | 郭佳慧 | 孙艺哲 |
|----|---|----|----|
| 25 | 25 | 25 | 25 | | 25 | 25 | 25 | 25 |
## 关于图书管理系统 ## 关于图书管理系统
@ -49,9 +47,29 @@
1.函数原形int main(); 1.函数原形int main();
2.功能调用ShowMainMenu()函数,显示主界面 2.功能调用ShowMainMenu()函数,显示主界面
``` ```
void ShowMainMenu()
{
system("cls");
printf("\n\n\n\n\n");
printf("\t|----------------------欢迎进入---------------------------\n");
printf("\t| 读者管理系统 \n");
printf("\t| 1、查询图书馆的总信息 \n");
printf("\t| 2、查询图书馆藏书信息 \n");
printf("\t| 3、存入新书 \n");
printf("\t| 4、旧书处理 \n");
printf("\t| 5、根据书名检索书刊信息 \n");
printf("\t| 6、查询读者的借阅信息 \n");
printf("\t| 7、查询读者信息 \n");
printf("\t| 8、读者借书 \n");
printf("\t| 9、读者还书 \n");
printf("\t| 10、文件保存 \n");
printf("\t| 11、从文件读取 \n");
printf("\t| 0、退出 \n");
printf("\t|---------------------------------------------------------\n");
printf("新打开程序需先添加管理员\n");
printf("\n");
printf("\t\t请选择0-11");
}
``` ```
## C2查询图书馆信息模块 ## C2查询图书馆信息模块
@ -59,7 +77,29 @@
函数原形void ShowLibInfo(const Book* book, const Reader* reader); 函数原形void ShowLibInfo(const Book* book, const Reader* reader);
功能:接受两个形参,分别是图书的链表地址,读者的链表地址,并遍历两个链表,显示出图书的数量和读者的数量 功能:接受两个形参,分别是图书的链表地址,读者的链表地址,并遍历两个链表,显示出图书的数量和读者的数量
``` ```
void ShowLibInfo(const Book* book1, const Reader* reader1)
{
Book* book = book1;
Reader* reader = reader1;
int bookNUm = 0, readerNUm = 0, mangerNUm = 0;
while (book != NULL)
{
bookNUm++;
book = book->next;
}
while (reader != NULL)
{
readerNUm++;
reader = reader->next;
}
printf("本图书馆共有藏书%d本,读者%d人\n", bookNUm, readerNUm);
printf("按任意键返回\n");
getchar();
return;
}
``` ```
@ -69,7 +109,18 @@
1) 函数原形: void ShowLibBook(Book* book); 1) 函数原形: void ShowLibBook(Book* book);
2) 功能: 接受一个形参:图书的链表地址,遍历该链表,显示出所有图书的信息 2) 功能: 接受一个形参:图书的链表地址,遍历该链表,显示出所有图书的信息
``` ```
void ShowLibBook(Book* book1)
{
Book* book = book1;
while (book != NULL)
{ // \t :制表符
printf("%d\t%s\t%s\t%s\t%d\n", book->iNum, book->acName, book->acAuthor, book->acPress, book->iAmount);
book = book->next;
}
printf("\n按任意键返回\n");
getchar();
return;
}
``` ```
@ -79,7 +130,78 @@
1) 函数原形: Book* AddBook(Book* book); 1) 函数原形: Book* AddBook(Book* book);
2) 功能: 接受一个形参:图书的链表地址,利用尾插对链表进行修改,添加图书 2) 功能: 接受一个形参:图书的链表地址,利用尾插对链表进行修改,添加图书
``` ```
Book* AddBook(Book* book1)
{
Book* book = book1;
if (book == NULL)
{
Book* tmp = (Book*)malloc(sizeof(Book));
tmp->next = NULL;
assert(tmp);
printf("输入书的编号:");
scanf("%d", &tmp->iNum);
getchar();
printf("输入书的名称:");
gets(&tmp->acName);
printf("输入书的作者:");
gets(tmp->acAuthor);
printf("输入书的出版社:");
gets(tmp->acPress);
printf("输入书的库存量:");
scanf("%d", &tmp->iAmount);
book = tmp;
printf("按任意键返回\n");
getchar();
return book;
return;
}
while (1)
{
while (book->next == NULL)
{
int flag = 1;
while (flag)
{
Book* tmp = (Book*)malloc(sizeof(Book));
tmp->next = NULL;
assert(tmp);
printf("输入书的编号:");
scanf("%d", &tmp->iNum);
getchar();
printf("输入书的名称:");
gets(&tmp->acName);
printf("输入书的作者:");
gets(tmp->acAuthor);
printf("输入书的出版社:");
gets(tmp->acPress);
printf("输入书的库存量:");
scanf("%d", &tmp->iAmount);
book->next = tmp;
printf("是否继续输入:1==>继续\t0==>结束\t");
scanf("%d", &flag);
getchar();
if (flag == 0)
{
printf("按任意键返回\n");
getchar();
return book1;
}
}
}
book = book->next;
}
printf("按任意键返回\n");
getchar();
return;
}
``` ```
@ -89,7 +211,40 @@
1函数原形: Book* DealoldBook(Book* book); 1函数原形: Book* DealoldBook(Book* book);
2) 功能: 接受一个形参:图书链表的地址,遍历该链表,用书的编号进行匹配,找到该图书后删除该图书,否则返回 2) 功能: 接受一个形参:图书链表的地址,遍历该链表,用书的编号进行匹配,找到该图书后删除该图书,否则返回
``` ```
Book* DealoldBook(Book* book1)
{
Book* book = book1;
Book* prev = book1;
printf("输入要处理旧书的编号:");
int id;
scanf("%d", &id);
getchar();
while (book != NULL)
{
if (id == book->iNum)
{
if (book1 == book)
{
book = book->next;
free(prev);
return book;
}
prev->next = book->next;
free(book); // free():释放资源
printf("已将旧书处理掉!\n");
printf("按任意键返回\n");
getchar();
return book1;
}
prev = book;
book = book->next;
}
printf("没有找到该图书\n");
printf("按任意键返回\n");
getchar();
return book1;
}
``` ```
@ -99,8 +254,30 @@
1函数原形: void foundBook(Book* book); 1函数原形: void foundBook(Book* book);
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;
}
``` ```
@ -109,8 +286,37 @@
1函数原形: void foundReader_Info(Reader* reader); 1函数原形: void foundReader_Info(Reader* reader);
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;
}
``` ```
@ -119,6 +325,34 @@
1函数原形: void foundReaderInfo(Reader* reader); 1函数原形: void foundReaderInfo(Reader* reader);
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;
}
@ -129,6 +363,131 @@
1)函数原形: Reader* LendBook(Reader* reader, Book* book); 1)函数原形: Reader* LendBook(Reader* reader, Book* book);
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;
}
}
}
@ -138,7 +497,7 @@
函数原形void returnBook(Reader* reader, Book* book); 函数原形void returnBook(Reader* reader, Book* book);
功能:接受两个形参:读者链表地址和图书链表地址,用读者的编号进行匹配,找到该读者后,用图书的编号进行匹配,进行还书,否则返回 功能:接受两个形参:读者链表地址和图书链表地址,用读者的编号进行匹配,找到该读者后,用图书的编号进行匹配,进行还书,否则返回
```
void returnBook(Reader* reader1, Book* book1) void returnBook(Reader* reader1, Book* book1)
{ {
Reader* reader = reader1; Reader* reader = reader1;
@ -191,7 +550,7 @@ void returnBook(Reader* reader1, Book* book1)
return reader1; return reader1;
} }
} }
```
@ -201,6 +560,7 @@ void returnBook(Reader* reader1, Book* book1)
1函数原形: void save(Book* book); 1函数原形: void save(Book* book);
2) 功能接受一个形参book的链表地址新建一个文件将链表中的信息保存到硬盘中 2) 功能接受一个形参book的链表地址新建一个文件将链表中的信息保存到硬盘中
```
void save(Book* book1) void save(Book* book1)
{ {
FILE* fp; FILE* fp;
@ -230,7 +590,7 @@ void save(Book* book1)
printf("保存文件的数据数目为:%d\n", iCount); printf("保存文件的数据数目为:%d\n", iCount);
fclose(fp); fclose(fp);
} }
```
@ -239,7 +599,7 @@ void save(Book* book1)
1函数原形: Book* read1(); 1函数原形: Book* read1();
2) 功能打开一个文件将文件中的信息读取到内存中并返回一个Book类型的指针 2) 功能打开一个文件将文件中的信息读取到内存中并返回一个Book类型的指针
```
Book* read1() Book* read1()
{ {
FILE* fp; FILE* fp;
@ -268,7 +628,80 @@ Book* read1()
return pHead; return pHead;
} }
```
## 概要设计
系统主要为开始界面和数据处理两大模块
开始界面即显示主要功能
数据处理包括:
查询图书馆的总信息
查询图书馆藏书信息
存入新书
旧书处理
根据书名检索书刊信息
查询读者的借阅信息
查询读者信息
读者借书
读者还书
文件保存
从文件读取
上述各模块通过主程序main进行调用系统模块图如下:
+----------------+ +----------------+
| Start | | End |
+----------------+ +----------------+
| |
v v
+----------------+ +----------------+
| ShowMainMenu | | ShowLibInfo |
+----------------+ +----------------+
| |
v v
+----------------+ +----------------+
| ShowLibBook | | AddBook |
+----------------+ +----------------+
| |
v v
+----------------+ +----------------+
| DealoldBook | | foundBook |
+----------------+ +----------------+
| |
v v
+----------------+ +----------------+
| foundReader_Info| | foundReaderInfo|
+----------------+ +----------------+
| |
v v
+----------------+ +----------------+
| LendBook | | returnBook |
+----------------+ +----------------+
| |
v v
+----------------+ +----------------+
| save | | read1 |
+----------------+ +----------------+
## 详细设计
针对概要设计
C1:void ShowLibInfo(const Book* book, const Reader* reader);\\查询图书馆的总信息
![c2](c2.svg)
C2:void ShowLibBook(Book* book);\\查询图书馆藏书信息
![c3](c3.svg)
C3:Book* AddBook(Book* book);\\存入新书
![c4](c4.svg)
C4:Book* DealoldBook(Book* book);\\旧书处理
![c5](c5.svg)
C5:void foundBook(Book* book);\\根据书名检索书刊信息
![555](foundbook.svg)
C6:void foundReader_Info(Reader* reader);\\查询读者的借阅信息
![666](foundreaderinfo.svg)
C7:void foundReaderInfo(Reader* reader);\\查询读者信息
![777](ReaderInfo.svg)
C8:Reader* LendBook(Reader* reader, Book* book);\\读者借书
![888](LendBook.svg)
C9:void returnBook(Reader* reader, Book* book);\\读者还书
![999](returnBook.svg)
C10:void save(Book* book);\\文件保存
![000](save.svg)
C11:Book* read1();\\从文件读取
![111](Bookread.svg)

@ -0,0 +1,166 @@
<?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="4416" height="6144">
<rect x="0" y="0" width="4416" height="6144" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="816,384 816,501"/>
<polygon fill="#404040" stroke="none" points="816,528 842,481 789,481"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="816,5616 816,5733"/>
<polygon fill="#404040" stroke="none" points="816,5760 842,5713 789,5713"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="6" stroke-dasharray="none" d="M 576,192 A 96 96, 0, 0 0, 576 384 L 1056,384 A 96 96, 0, 0 0, 1056 192 Z"/>
<text x="816" y="220" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="816" dy="96" unicode-bidi="embed">ReaderInfo</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="6" stroke-dasharray="none" d="M 624,5760 A 96 96, 0, 0 0, 624 5952 L 1008,5952 A 96 96, 0, 0 0, 1008 5760 Z"/>
<text x="816" y="5788" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="816" dy="96" unicode-bidi="embed">End</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="816,768 816,885"/>
<polygon fill="#404040" stroke="none" points="816,912 842,865 789,865"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="816,1152 816,1269"/>
<polygon fill="#404040" stroke="none" points="816,1296 842,1249 789,1249"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="816,1488 816,1605"/>
<polygon fill="#404040" stroke="none" points="816,1632 842,1585 789,1585"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="816,1824 816,1989"/>
<polygon fill="#404040" stroke="none" points="816,2016 842,1969 789,1969"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="816,2208 816,5061"/>
<polygon fill="#404040" stroke="none" points="816,5088 842,5041 789,5041"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="816,5280 816,5397"/>
<polygon fill="#404040" stroke="none" points="816,5424 842,5377 789,5377"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" d="M 432,528 L 432,768 L 1200,768 L 1200,528 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="432,576 1200,576"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="480,528 480,768"/>
<text x="840" y="604" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="840" dy="96" unicode-bidi="embed">String reader1</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" d="M 528,912 L 528,1152 L 1104,1152 L 1104,912 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="528,960 1104,960"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="576,912 576,1152"/>
<text x="840" y="988" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="840" dy="96" unicode-bidi="embed">Integer id</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 624,1296 L 528,1488 L 1008,1488 L 1104,1296 Z"/>
<text x="816" y="1324" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="816" dy="96" unicode-bidi="embed">Input id</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 480,1632 L 384,1824 L 1152,1824 L 1248,1632 Z"/>
<text x="816" y="1660" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="816" dy="96" unicode-bidi="embed">Input reader1</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1104,2112 2688,2112 2688,2277"/>
<polygon fill="#404040" stroke="none" points="2688,2304 2714,2257 2661,2257"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2688,4752 2688,4896 912,4896 912,2234"/>
<polygon fill="#404040" stroke="none" points="912,2208 885,2254 938,2254"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3168,2592 3504,2592 3504,2949"/>
<polygon fill="#404040" stroke="none" points="3504,2976 3530,2929 3477,2929"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3504,4512 3504,4704 2762,4704"/>
<polygon fill="#404040" stroke="none" points="2736,4704 2782,4730 2782,4677"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2208,2592 1824,2592 1824,2949"/>
<polygon fill="#404040" stroke="none" points="1824,2976 1850,2929 1797,2929"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1824,3264 1824,4704 2613,4704"/>
<polygon fill="#404040" stroke="none" points="2640,4704 2593,4677 2593,4730"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 2688,2304 L 2160,2592 L 2688,2880 L 3216,2592 Z"/>
<text x="2688" y="2524" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2688" dy="96" unicode-bidi="embed">id == reader-&gt;iNum</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3504,3168 3504,3285"/>
<polygon fill="#404040" stroke="none" points="3504,3312 3530,3265 3477,3265"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3504,3504 3504,3621"/>
<polygon fill="#404040" stroke="none" points="3504,3648 3530,3601 3477,3601"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3504,3840 3504,3957"/>
<polygon fill="#404040" stroke="none" points="3504,3984 3530,3937 3477,3937"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3504,4176 3504,4293"/>
<polygon fill="#404040" stroke="none" points="3504,4320 3530,4273 3477,4273"/>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 3168,2976 L 3072,3168 L 3840,3168 L 3936,2976 Z"/>
<text x="3504" y="3004" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3504" dy="96" unicode-bidi="embed">Output &#35835;&#32773;id</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 3120,3312 L 3024,3504 L 3888,3504 L 3984,3312 Z"/>
<text x="3504" y="3340" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3504" dy="96" unicode-bidi="embed">Output &#35835;&#32773;&#22995;&#21517;</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 3120,3648 L 3024,3840 L 3888,3840 L 3984,3648 Z"/>
<text x="3504" y="3676" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3504" dy="96" unicode-bidi="embed">Output &#35835;&#32773;&#24615;&#21035;</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 2880,3984 L 2784,4176 L 4128,4176 L 4224,3984 Z"/>
<text x="3504" y="4012" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3504" dy="96" unicode-bidi="embed">Output &#35835;&#32773;&#24050;&#20511;&#38405;&#20070;&#30340;&#25968;&#37327;</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 3216,4320 L 3120,4512 L 3792,4512 L 3888,4320 Z"/>
<text x="3504" y="4348" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3504" dy="96" unicode-bidi="embed">Input reader</tspan>
</text>
</g>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 1296,2976 L 1152,3264 L 2352,3264 L 2496,2976 Z"/>
<text x="1824" y="3004" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1824" dy="96" unicode-bidi="embed">Output reader = reader-&gt;</tspan>
<tspan x="1824" dy="96" unicode-bidi="embed">next</tspan>
</text>
</g>
<ellipse cx="2688" cy="4704" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="3360" y="2428" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3360" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="1992" y="2428" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1992" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="6" stroke-dasharray="none" d="M 624,2016 L 528,2112 L 624,2208 L 1008,2208 L 1104,2112 L 1008,2016 Z"/>
<text x="816" y="2044" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="816" dy="96" unicode-bidi="embed">reader</tspan>
</text>
</g>
<text x="1248" y="1948" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1248" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="648" y="2236" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="648" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 288,5088 L 192,5280 L 1344,5280 L 1440,5088 Z"/>
<text x="816" y="5116" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="816" dy="96" unicode-bidi="embed">Output &#27809;&#26377;&#25214;&#21040;&#35813;&#35835;&#32773;</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 528,5424 L 432,5616 L 1104,5616 L 1200,5424 Z"/>
<text x="816" y="5452" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="816" dy="96" unicode-bidi="embed">Input reader</tspan>
</text>
</g>
</g>
</g>
</svg>

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

@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="2412" height="2484">
<rect x="0" y="0" width="2412" height="2484" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="612,288 612,375"/>
<polygon fill="#404040" stroke="none" points="612,396 632,361 591,361"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="612,2088 612,2175"/>
<polygon fill="#404040" stroke="none" points="612,2196 632,2161 591,2161"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 468,144 A 72 72, 0, 0 0, 468 288 L 756,288 A 72 72, 0, 0 0, 756 144 Z"/>
<text x="612" y="165" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="612" dy="72" unicode-bidi="embed">Main</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 468,2196 A 72 72, 0, 0 0, 468 2340 L 756,2340 A 72 72, 0, 0 0, 756 2196 Z"/>
<text x="612" y="2217" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="612" dy="72" unicode-bidi="embed">End</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="612,540 612,663"/>
<polygon fill="#404040" stroke="none" points="612,684 632,649 591,649"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="612,828 612,1707"/>
<polygon fill="#404040" stroke="none" points="612,1728 632,1693 591,1693"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 288,396 L 288,540 L 936,540 L 936,396 Z"/>
<text x="612" y="417" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="612" dy="72" unicode-bidi="embed">Book*book = book1</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="936,756 1548,756 1548,879"/>
<polygon fill="#404040" stroke="none" points="1548,900 1568,865 1527,865"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1548,1476 1548,1584 684,1584 684,848"/>
<polygon fill="#404040" stroke="none" points="684,828 663,862 704,862"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 1116,900 L 828,1476 L 1980,1476 L 2268,900 Z"/>
<text x="1548" y="921" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1548" dy="72" unicode-bidi="embed">Output printf(&quot;%d\t%s\t%s\t</tspan>
<tspan x="1548" dy="72" unicode-bidi="embed">%s\t%d\n&quot;, book-&gt;iNum,</tspan>
<tspan x="1548" dy="72" unicode-bidi="embed"> book-&gt;acName, book-&gt;</tspan>
<tspan x="1548" dy="72" unicode-bidi="embed">acAuthor, book-&gt;acPress,</tspan>
<tspan x="1548" dy="72" unicode-bidi="embed"> book-&gt;</tspan>
<tspan x="1548" dy="72" unicode-bidi="embed">iAmount);&#13;</tspan>
<tspan x="1548" dy="72" unicode-bidi="embed">book = book-&gt;next;</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="5" stroke-dasharray="none" d="M 360,684 L 288,756 L 360,828 L 864,828 L 936,756 L 864,684 Z"/>
<text x="612" y="705" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="612" dy="72" unicode-bidi="embed">book!=NULL</tspan>
</text>
</g>
<text x="1044" y="633" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1044" dy="72" unicode-bidi="embed">True</tspan>
</text>
<text x="486" y="849" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="486" dy="72" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 324,1728 L 144,2088 L 900,2088 L 1080,1728 Z"/>
<text x="612" y="1749" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="612" dy="72" unicode-bidi="embed">Output printf(&quot;\</tspan>
<tspan x="612" dy="72" unicode-bidi="embed">n&#25353;&#20219;&#24847;&#38190;&#36820;&#22238;\</tspan>
<tspan x="612" dy="72" unicode-bidi="embed">n&quot;);&#13;</tspan>
<tspan x="612" dy="72" unicode-bidi="embed">getchar();</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.7 KiB

281
c4.svg

@ -0,0 +1,281 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="6480" height="11124">
<rect x="0" y="0" width="6480" height="11124" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,288 756,375"/>
<polygon fill="#404040" stroke="none" points="756,396 776,361 735,361"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,10728 756,10815"/>
<polygon fill="#404040" stroke="none" points="756,10836 776,10801 735,10801"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 612,144 A 72 72, 0, 0 0, 612 288 L 900,288 A 72 72, 0, 0 0, 900 144 Z"/>
<text x="756" y="165" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">kaishi</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 612,10836 A 72 72, 0, 0 0, 612 10980 L 900,10980 A 72 72, 0, 0 0, 900 10836 Z"/>
<text x="756" y="10857" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">End</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,540 756,627"/>
<polygon fill="#404040" stroke="none" points="756,648 776,613 735,613"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,4068 756,4191"/>
<polygon fill="#404040" stroke="none" points="756,4212 776,4177 735,4177"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,4356 756,10419"/>
<polygon fill="#404040" stroke="none" points="756,10440 776,10405 735,10405"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 432,396 L 432,540 L 1080,540 L 1080,396 Z"/>
<text x="756" y="417" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">Book*book = book1</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1044,828 2700,828 2700,1059"/>
<polygon fill="#404040" stroke="none" points="2700,1080 2720,1045 2679,1045"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2700,3888 2700,4032 812,4032"/>
<polygon fill="#404040" stroke="none" points="792,4032 826,4052 826,4011"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="468,828 180,828 180,4032 699,4032"/>
<polygon fill="#404040" stroke="none" points="720,4032 685,4011 685,4052"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="5" stroke-dasharray="none" d="M 756,648 L 432,828 L 756,1008 L 1080,828 Z"/>
<text x="756" y="777" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">book==NULL</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 2232,1080 L 828,3888 L 3168,3888 L 4572,1080 Z"/>
<text x="2700" y="1101" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2700" dy="72" unicode-bidi="embed">Output Book* tmp = (Book*)</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">malloc(sizeof</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">(Book));&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;tmp-&gt;next = NULL</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">;&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;assert</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">(tmp);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;printf</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">(&quot;&#36755;&#20837;&#20070;&#30340;&#32534;&#21495;:&quot;);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;scanf(&quot;%d&quot;, &amp;tmp-&gt;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">iNum);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;getchar</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">();&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;printf</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">(&quot;&#36755;&#20837;&#20070;&#30340;&#21517;&#31216;:&quot;);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;gets(&amp;tmp-&gt;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">acName);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;printf</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">(&quot;&#36755;&#20837;&#20070;&#30340;&#20316;&#32773;:&quot;);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;gets(tmp-&gt;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">acAuthor);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;printf</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">(&quot;&#36755;&#20837;&#20070;&#30340;&#20986;&#29256;&#31038;:&quot;);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;gets(tmp-&gt;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">acPress);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;printf</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">(&quot;&#36755;&#20837;&#20070;&#30340;&#24211;&#23384;&#37327;:&quot;);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;scanf(&quot;%d&quot;, &amp;tmp-&gt;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">iAmount);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;book = tmp</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">;&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed"></tspan>
<tspan x="2700" dy="72" unicode-bidi="embed"> &#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;printf(&quot;&#25353;&#20219;&#24847;&#38190;&#36820;&#22238;\</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">n&quot;);&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;getchar</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">();&#13;</tspan>
<tspan x="2700" dy="72" unicode-bidi="embed">&#9;&#9;return book;</tspan>
</text>
</g>
<g>
</g>
<ellipse cx="756" cy="4032" rx="36" ry="36" fill="#FFD0D0" stroke="#A07070" stroke-width="5"/>
<text x="1188" y="705" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1188" dy="72" unicode-bidi="embed">True</tspan>
</text>
<text x="306" y="705" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="306" dy="72" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="972,4284 1440,4284 1440,4443"/>
<polygon fill="#404040" stroke="none" points="1440,4464 1460,4429 1419,4429"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1440,10188 1440,10296 828,10296 828,4376"/>
<polygon fill="#404040" stroke="none" points="828,4356 807,4390 848,4390"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1440,4608 1440,10023"/>
<polygon fill="#404040" stroke="none" points="1440,10044 1460,10009 1419,10009"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1836,4536 2016,4536 2016,4659"/>
<polygon fill="#404040" stroke="none" points="2016,4680 2036,4645 1995,4645"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2016,5400 2016,9900 1512,9900 1512,4628"/>
<polygon fill="#404040" stroke="none" points="1512,4608 1491,4642 1532,4642"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2016,4860 2016,4947"/>
<polygon fill="#404040" stroke="none" points="2016,4968 2036,4933 1995,4933"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2016,5112 2016,5235"/>
<polygon fill="#404040" stroke="none" points="2016,5256 2036,5221 1995,5221"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" d="M 1800,4680 L 1800,4860 L 2232,4860 L 2232,4680 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" points="1800,4716 2232,4716"/>
<polyline fill="none" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" points="1836,4680 1836,4860"/>
<text x="2034" y="4737" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2034" dy="72" unicode-bidi="embed">Integer flag</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" d="M 1800,4968 L 1800,5112 L 2232,5112 L 2232,4968 Z"/>
<text x="2016" y="4989" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2016" dy="72" unicode-bidi="embed">flag = 1</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2232,5328 4284,5328 4284,5451"/>
<polygon fill="#404040" stroke="none" points="4284,5472 4304,5437 4263,5437"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="4284,9648 4284,9756 2088,9756 2088,5420"/>
<polygon fill="#404040" stroke="none" points="2088,5400 2067,5434 2108,5434"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="4284,8640 4284,8727"/>
<polygon fill="#404040" stroke="none" points="4284,8748 4304,8713 4263,8713"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 3816,5472 L 2232,8640 L 4752,8640 L 6336,5472 Z"/>
<text x="4284" y="5493" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4284" dy="72" unicode-bidi="embed">Output Book* tmp = (Book*)</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">malloc(sizeof</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">(Book));&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed"></tspan>
<tspan x="4284" dy="72" unicode-bidi="embed"> &#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;tmp-&gt;next = NULL</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">;&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;assert</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">(tmp);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;printf</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">(&quot;&#36755;&#20837;&#20070;&#30340;&#32534;&#21495;:&quot;);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;scanf(&quot;%d&quot;, &amp;tmp-&gt;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">iNum);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;getchar</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">();&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;printf</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">(&quot;&#36755;&#20837;&#20070;&#30340;&#21517;&#31216;:&quot;);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;gets(&amp;tmp-&gt;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">acName);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;printf</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">(&quot;&#36755;&#20837;&#20070;&#30340;&#20316;&#32773;:&quot;);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;gets(tmp-&gt;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">acAuthor);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;printf</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">(&quot;&#36755;&#20837;&#20070;&#30340;&#20986;&#29256;&#31038;:&quot;);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;gets(tmp-&gt;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">acPress);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;printf</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">(&quot;&#36755;&#20837;&#20070;&#30340;&#24211;&#23384;&#37327;:&quot;);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;scanf(&quot;%d&quot;, &amp;tmp-&gt;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">iAmount);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed"></tspan>
<tspan x="4284" dy="72" unicode-bidi="embed"> &#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;book-&gt;next = tmp</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">;&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed"></tspan>
<tspan x="4284" dy="72" unicode-bidi="embed"> &#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;printf(&quot;&#26159;&#21542;&#32487;&#32493;&#36755;&#20837;:1==&gt;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#32487;&#32493;\t0==&gt;&#32467;&#26463;\</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">t&quot;);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;scanf(&quot;%d&quot;, &amp;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">flag);&#13;</tspan>
<tspan x="4284" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;getchar();</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="4464,8856 5040,8856 5040,9015"/>
<polygon fill="#404040" stroke="none" points="5040,9036 5060,9001 5019,9001"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="5040,9468 5040,9612 4340,9612"/>
<polygon fill="#404040" stroke="none" points="4320,9612 4354,9632 4354,9591"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="4104,8856 3816,8856 3816,9612 4227,9612"/>
<polygon fill="#404040" stroke="none" points="4248,9612 4213,9591 4213,9632"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="5" stroke-dasharray="none" d="M 4284,8748 L 4068,8856 L 4284,8964 L 4500,8856 Z"/>
<text x="4284" y="8805" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4284" dy="72" unicode-bidi="embed">flag==0</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 4572,9036 L 4356,9468 L 5508,9468 L 5724,9036 Z"/>
<text x="5040" y="9057" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5040" dy="72" unicode-bidi="embed">Output printf(&quot;&#25353;&#20219;&#24847;&#38190;&#36820;&#22238;\</tspan>
<tspan x="5040" dy="72" unicode-bidi="embed">n&quot;);&#13;</tspan>
<tspan x="5040" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;&#9;getchar</tspan>
<tspan x="5040" dy="72" unicode-bidi="embed">();&#13;</tspan>
<tspan x="5040" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;&#9;return book1;</tspan>
</text>
</g>
<g>
</g>
<ellipse cx="4284" cy="9612" rx="36" ry="36" fill="#FFD0D0" stroke="#A07070" stroke-width="5"/>
<text x="4608" y="8733" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4608" dy="72" unicode-bidi="embed">True</tspan>
</text>
<text x="3942" y="8733" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3942" dy="72" unicode-bidi="embed">False</tspan>
</text>
</g>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="5" stroke-dasharray="none" d="M 1872,5256 L 1800,5328 L 1872,5400 L 2160,5400 L 2232,5328 L 2160,5256 Z"/>
<text x="2016" y="5277" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2016" dy="72" unicode-bidi="embed">flag</tspan>
</text>
</g>
<text x="2340" y="5205" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2340" dy="72" unicode-bidi="embed">True</tspan>
</text>
<text x="1890" y="5421" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1890" dy="72" unicode-bidi="embed">False</tspan>
</text>
</g>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 1116,4464 L 1044,4536 L 1116,4608 L 1764,4608 L 1836,4536 L 1764,4464 Z"/>
<text x="1440" y="4485" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1440" dy="72" unicode-bidi="embed">book-&gt;next==NULL</tspan>
</text>
</g>
<text x="1944" y="4413" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1944" dy="72" unicode-bidi="embed">True</tspan>
</text>
<text x="1314" y="4629" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1314" dy="72" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 1044,10044 L 972,10188 L 1836,10188 L 1908,10044 Z"/>
<text x="1440" y="10065" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1440" dy="72" unicode-bidi="embed">Output book=book-&gt;next</tspan>
</text>
</g>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="5" stroke-dasharray="none" d="M 612,4212 L 540,4284 L 612,4356 L 900,4356 L 972,4284 L 900,4212 Z"/>
<text x="756" y="4233" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">1</tspan>
</text>
</g>
<text x="1080" y="4161" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1080" dy="72" unicode-bidi="embed">True</tspan>
</text>
<text x="630" y="4377" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="630" dy="72" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 288,10440 L 144,10728 L 1224,10728 L 1368,10440 Z"/>
<text x="756" y="10461" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">Output printf(&quot;&#25353;&#20219;&#24847;&#38190;&#36820;&#22238;\</tspan>
<tspan x="756" dy="72" unicode-bidi="embed">n&quot;);&#13;</tspan>
<tspan x="756" dy="72" unicode-bidi="embed">&#9;getchar();</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 20 KiB

183
c5.svg

@ -0,0 +1,183 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="5724" height="5472">
<rect x="0" y="0" width="5724" height="5472" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,288 756,375"/>
<polygon fill="#404040" stroke="none" points="756,396 776,361 735,361"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,5076 756,5163"/>
<polygon fill="#404040" stroke="none" points="756,5184 776,5149 735,5149"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 612,144 A 72 72, 0, 0 0, 612 288 L 900,288 A 72 72, 0, 0 0, 900 144 Z"/>
<text x="756" y="165" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">begin</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 432,5184 A 72 72, 0, 0 0, 432 5328 L 1080,5328 A 72 72, 0, 0 0, 1080 5184 Z"/>
<text x="756" y="5205" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">Return Integer book1</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,540 756,627"/>
<polygon fill="#404040" stroke="none" points="756,648 776,613 735,613"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,792 756,879"/>
<polygon fill="#404040" stroke="none" points="756,900 776,865 735,865"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,1116 756,1203"/>
<polygon fill="#404040" stroke="none" points="756,1224 776,1189 735,1189"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,1404 756,1491"/>
<polygon fill="#404040" stroke="none" points="756,1512 776,1477 735,1477"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,1656 756,1779"/>
<polygon fill="#404040" stroke="none" points="756,1800 776,1765 735,1765"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="756,1944 756,4551"/>
<polygon fill="#404040" stroke="none" points="756,4572 776,4537 735,4537"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 432,396 L 432,540 L 1080,540 L 1080,396 Z"/>
<text x="756" y="417" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">Book*book = book1</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 432,648 L 432,792 L 1080,792 L 1080,648 Z"/>
<text x="756" y="669" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">Book*pre = book1</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 324,900 L 216,1116 L 1188,1116 L 1296,900 Z"/>
<text x="756" y="921" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">Output printf</tspan>
<tspan x="756" dy="72" unicode-bidi="embed">(&quot;&#36755;&#20837;&#35201;&#22788;&#29702;&#26087;&#20070;&#30340;&#32534;&#21495;:&quot;);</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" d="M 540,1224 L 540,1404 L 972,1404 L 972,1224 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" points="540,1260 972,1260"/>
<polyline fill="none" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" points="576,1224 576,1404"/>
<text x="774" y="1281" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="774" dy="72" unicode-bidi="embed">Integer id</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="5" stroke-dasharray="none" d="M 612,1512 L 540,1656 L 900,1656 L 972,1512 Z"/>
<text x="756" y="1533" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">Input id</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1080,1872 2088,1872 2088,1995"/>
<polygon fill="#404040" stroke="none" points="2088,2016 2108,1981 2067,1981"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2088,4320 2088,4428 828,4428 828,1964"/>
<polygon fill="#404040" stroke="none" points="828,1944 807,1978 848,1978"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2412,2196 4212,2196 4212,2427"/>
<polygon fill="#404040" stroke="none" points="4212,2448 4232,2413 4191,2413"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="4212,4140 4212,4284 2144,4284"/>
<polygon fill="#404040" stroke="none" points="2124,4284 2158,4304 2158,4263"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1764,2196 1476,2196 1476,2427"/>
<polygon fill="#404040" stroke="none" points="1476,2448 1496,2413 1455,2413"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1476,2736 1476,4284 2031,4284"/>
<polygon fill="#404040" stroke="none" points="2052,4284 2017,4263 2017,4304"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 2088,2016 L 1728,2196 L 2088,2376 L 2448,2196 Z"/>
<text x="2088" y="2145" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2088" dy="72" unicode-bidi="embed">id==book-&gt;iNUm</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="4500,2628 4932,2628 4932,2859"/>
<polygon fill="#404040" stroke="none" points="4932,2880 4952,2845 4911,2845"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="4932,3312 4932,4104 4268,4104"/>
<polygon fill="#404040" stroke="none" points="4248,4104 4282,4124 4282,4083"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="3924,2628 3168,2628 3168,2859"/>
<polygon fill="#404040" stroke="none" points="3168,2880 3188,2845 3147,2845"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="3168,3960 3168,4104 4155,4104"/>
<polygon fill="#404040" stroke="none" points="4176,4104 4141,4083 4141,4124"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="5" stroke-dasharray="none" d="M 4212,2448 L 3888,2628 L 4212,2808 L 4536,2628 Z"/>
<text x="4212" y="2577" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4212" dy="72" unicode-bidi="embed">book1==book</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 4500,2880 L 4284,3312 L 5364,3312 L 5580,2880 Z"/>
<text x="4932" y="2901" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4932" dy="72" unicode-bidi="embed">Output book = book-&gt;next</tspan>
<tspan x="4932" dy="72" unicode-bidi="embed">;&#13;</tspan>
<tspan x="4932" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;free</tspan>
<tspan x="4932" dy="72" unicode-bidi="embed">(prev);&#13;</tspan>
<tspan x="4932" dy="72" unicode-bidi="embed">&#9;&#9;&#9;&#9;return book;</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 2736,2880 L 2196,3960 L 3600,3960 L 4140,2880 Z"/>
<text x="3168" y="2901" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3168" dy="72" unicode-bidi="embed">Output prev-&gt;next = book-&gt;</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">next</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">;&#13;</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">&#9;&#9;&#9;free(book); //</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed"> free</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">():&#37322;&#25918;&#36164;&#28304;&#13;</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">&#9;&#9;&#9;printf</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">(&quot;&#24050;&#23558;&#26087;&#20070;&#22788;&#29702;&#25481;!\</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">n&quot;);&#13;</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">&#9;&#9;&#9;printf(&quot;&#25353;&#20219;&#24847;&#38190;&#36820;&#22238;\</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">n&quot;);&#13;</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">&#9;&#9;&#9;getchar</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">();&#13;</tspan>
<tspan x="3168" dy="72" unicode-bidi="embed">&#9;&#9;&#9;return book1;</tspan>
</text>
</g>
<ellipse cx="4212" cy="4104" rx="36" ry="36" fill="#FFD0D0" stroke="#A07070" stroke-width="5"/>
<text x="4644" y="2505" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4644" dy="72" unicode-bidi="embed">True</tspan>
</text>
<text x="3762" y="2505" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3762" dy="72" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 1152,2448 L 1008,2736 L 1800,2736 L 1944,2448 Z"/>
<text x="1476" y="2469" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1476" dy="72" unicode-bidi="embed">Output prev = book</tspan>
<tspan x="1476" dy="72" unicode-bidi="embed">;&#13;</tspan>
<tspan x="1476" dy="72" unicode-bidi="embed">&#9;&#9;book = book-&gt;next;</tspan>
</text>
</g>
<ellipse cx="2088" cy="4284" rx="36" ry="36" fill="#C04040" stroke="#602020" stroke-width="5"/>
<text x="2556" y="2073" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2556" dy="72" unicode-bidi="embed">True</tspan>
</text>
<text x="1602" y="2073" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1602" dy="72" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="5" stroke-dasharray="none" d="M 504,1800 L 432,1872 L 504,1944 L 1008,1944 L 1080,1872 L 1008,1800 Z"/>
<text x="756" y="1821" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">book!=NULL</tspan>
</text>
</g>
<text x="1188" y="1749" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1188" dy="72" unicode-bidi="embed">True</tspan>
</text>
<text x="630" y="1965" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="630" dy="72" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 396,4572 L 144,5076 L 1116,5076 L 1368,4572 Z"/>
<text x="756" y="4593" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="756" dy="72" unicode-bidi="embed">Output printf</tspan>
<tspan x="756" dy="72" unicode-bidi="embed">(&quot;&#27809;&#26377;&#25214;&#21040;&#35813;&#22270;&#20070;\</tspan>
<tspan x="756" dy="72" unicode-bidi="embed">n&quot;);&#13;</tspan>
<tspan x="756" dy="72" unicode-bidi="embed">&#9;printf(&quot;&#25353;&#20219;&#24847;&#38190;&#36820;&#22238;\</tspan>
<tspan x="756" dy="72" unicode-bidi="embed">n&quot;);&#13;</tspan>
<tspan x="756" dy="72" unicode-bidi="embed">&#9;getchar();</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 13 KiB

@ -0,0 +1,145 @@
<?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="3504" height="5376">
<rect x="0" y="0" width="3504" height="5376" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="864,384 864,501"/>
<polygon fill="#404040" stroke="none" points="864,528 890,481 837,481"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="864,4848 864,4965"/>
<polygon fill="#404040" stroke="none" points="864,4992 890,4945 837,4945"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="6" stroke-dasharray="none" d="M 624,192 A 96 96, 0, 0 0, 624 384 L 1104,384 A 96 96, 0, 0 0, 1104 192 Z"/>
<text x="864" y="220" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="864" dy="96" unicode-bidi="embed">foundbook</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="6" stroke-dasharray="none" d="M 672,4992 A 96 96, 0, 0 0, 672 5184 L 1056,5184 A 96 96, 0, 0 0, 1056 4992 Z"/>
<text x="864" y="5020" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="864" dy="96" unicode-bidi="embed">End</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="864,768 864,885"/>
<polygon fill="#404040" stroke="none" points="864,912 890,865 837,865"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="864,1152 864,1269"/>
<polygon fill="#404040" stroke="none" points="864,1296 890,1249 837,1249"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="864,1488 864,1605"/>
<polygon fill="#404040" stroke="none" points="864,1632 890,1585 837,1585"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="864,1824 864,1989"/>
<polygon fill="#404040" stroke="none" points="864,2016 890,1969 837,1969"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="864,2208 864,4293"/>
<polygon fill="#404040" stroke="none" points="864,4320 890,4273 837,4273"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="864,4512 864,4629"/>
<polygon fill="#404040" stroke="none" points="864,4656 890,4609 837,4609"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" d="M 528,528 L 528,768 L 1200,768 L 1200,528 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="528,576 1200,576"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="576,528 576,768"/>
<text x="888" y="604" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="888" dy="96" unicode-bidi="embed">String book1</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" d="M 576,912 L 576,1152 L 1152,1152 L 1152,912 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="576,960 1152,960"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="624,912 624,1152"/>
<text x="888" y="988" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="888" dy="96" unicode-bidi="embed">Integer id</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 672,1296 L 576,1488 L 1056,1488 L 1152,1296 Z"/>
<text x="864" y="1324" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="864" dy="96" unicode-bidi="embed">Input id</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 576,1632 L 480,1824 L 1152,1824 L 1248,1632 Z"/>
<text x="864" y="1660" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="864" dy="96" unicode-bidi="embed">Input book1</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1296,2112 2016,2112 2016,2277"/>
<polygon fill="#404040" stroke="none" points="2016,2304 2042,2257 1989,2257"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2016,3984 2016,4128 960,4128 960,2234"/>
<polygon fill="#404040" stroke="none" points="960,2208 933,2254 986,2254"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2016,3648 2016,3765"/>
<polygon fill="#404040" stroke="none" points="2016,3792 2042,3745 1989,3745"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2448,2544 2784,2544 2784,2853"/>
<polygon fill="#404040" stroke="none" points="2784,2880 2810,2833 2757,2833"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2784,3408 2784,3600 2090,3600"/>
<polygon fill="#404040" stroke="none" points="2064,3600 2110,3626 2110,3573"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1584,2544 1200,2544 1200,3600 1941,3600"/>
<polygon fill="#404040" stroke="none" points="1968,3600 1921,3573 1921,3626"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 2016,2304 L 1536,2544 L 2016,2784 L 2496,2544 Z"/>
<text x="2016" y="2476" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2016" dy="96" unicode-bidi="embed">id==book-&gt;iNum</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2784,3072 2784,3189"/>
<polygon fill="#404040" stroke="none" points="2784,3216 2810,3169 2757,3169"/>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 2352,2880 L 2256,3072 L 3216,3072 L 3312,2880 Z"/>
<text x="2784" y="2908" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2784" dy="96" unicode-bidi="embed">Output &#35813;&#20070;&#30340;&#20449;&#24687;</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 2496,3216 L 2400,3408 L 3072,3408 L 3168,3216 Z"/>
<text x="2784" y="3244" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2784" dy="96" unicode-bidi="embed">Input book</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="2016" cy="3600" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="2640" y="2380" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2640" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="1368" y="2380" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1368" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 1488,3792 L 1392,3984 L 2544,3984 L 2640,3792 Z"/>
<text x="2016" y="3820" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2016" dy="96" unicode-bidi="embed">Output book=book-&gt;next</tspan>
</text>
</g>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 528,2016 L 432,2112 L 528,2208 L 1200,2208 L 1296,2112 L 1200,2016 Z"/>
<text x="864" y="2044" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="864" dy="96" unicode-bidi="embed">book&#65281;=NULL</tspan>
</text>
</g>
<text x="1440" y="1948" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1440" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="696" y="2236" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="696" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 384,4320 L 288,4512 L 1344,4512 L 1440,4320 Z"/>
<text x="864" y="4348" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="864" dy="96" unicode-bidi="embed">Output &#27809;&#26377;&#25214;&#21040;&#35813;&#20070;</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 288,4656 L 192,4848 L 1440,4848 L 1536,4656 Z"/>
<text x="864" y="4684" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="864" dy="96" unicode-bidi="embed">Input &#38656;&#35201;&#26597;&#25214;&#30340;&#19979;&#19968;&#26412;&#20070;</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.4 KiB

@ -0,0 +1,193 @@
<?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="6432" height="7008">
<rect x="0" y="0" width="6432" height="7008" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="720,384 720,501"/>
<polygon fill="#404040" stroke="none" points="720,528 746,481 693,481"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="720,6480 720,6597"/>
<polygon fill="#404040" stroke="none" points="720,6624 746,6577 693,6577"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="6" stroke-dasharray="none" d="M 384,192 A 96 96, 0, 0 0, 384 384 L 1056,384 A 96 96, 0, 0 0, 1056 192 Z"/>
<text x="720" y="220" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="720" dy="96" unicode-bidi="embed">foundreaderinfo</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="6" stroke-dasharray="none" d="M 528,6624 A 96 96, 0, 0 0, 528 6816 L 912,6816 A 96 96, 0, 0 0, 912 6624 Z"/>
<text x="720" y="6652" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="720" dy="96" unicode-bidi="embed">End</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="720,768 720,885"/>
<polygon fill="#404040" stroke="none" points="720,912 746,865 693,865"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="720,1152 720,1269"/>
<polygon fill="#404040" stroke="none" points="720,1296 746,1249 693,1249"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="720,1488 720,1605"/>
<polygon fill="#404040" stroke="none" points="720,1632 746,1585 693,1585"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="720,1824 720,1989"/>
<polygon fill="#404040" stroke="none" points="720,2016 746,1969 693,1969"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="720,2208 720,5925"/>
<polygon fill="#404040" stroke="none" points="720,5952 746,5905 693,5905"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="720,6144 720,6261"/>
<polygon fill="#404040" stroke="none" points="720,6288 746,6241 693,6241"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" d="M 336,528 L 336,768 L 1104,768 L 1104,528 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="336,576 1104,576"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="384,528 384,768"/>
<text x="744" y="604" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="744" dy="96" unicode-bidi="embed">String reader1</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" d="M 432,912 L 432,1152 L 1008,1152 L 1008,912 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="432,960 1008,960"/>
<polyline fill="none" stroke="#A0A070" stroke-width="6" stroke-dasharray="none" points="480,912 480,1152"/>
<text x="744" y="988" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="744" dy="96" unicode-bidi="embed">Integer id</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 528,1296 L 432,1488 L 912,1488 L 1008,1296 Z"/>
<text x="720" y="1324" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="720" dy="96" unicode-bidi="embed">Input id</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 432,1632 L 336,1824 L 1008,1824 L 1104,1632 Z"/>
<text x="720" y="1660" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="720" dy="96" unicode-bidi="embed">Input reader</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1008,2112 2592,2112 2592,2277"/>
<polygon fill="#404040" stroke="none" points="2592,2304 2618,2257 2565,2257"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2592,5616 2592,5760 816,5760 816,2234"/>
<polygon fill="#404040" stroke="none" points="816,2208 789,2254 842,2254"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3072,2592 3408,2592 3408,2949"/>
<polygon fill="#404040" stroke="none" points="3408,2976 3434,2929 3381,2929"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3408,3552 3408,5568 2666,5568"/>
<polygon fill="#404040" stroke="none" points="2640,5568 2686,5594 2686,5541"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="2112,2592 1728,2592 1728,2949"/>
<polygon fill="#404040" stroke="none" points="1728,2976 1754,2929 1701,2929"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="1728,3264 1728,5568 2517,5568"/>
<polygon fill="#404040" stroke="none" points="2544,5568 2497,5541 2497,5594"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 2592,2304 L 2064,2592 L 2592,2880 L 3120,2592 Z"/>
<text x="2592" y="2524" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2592" dy="96" unicode-bidi="embed">id==reader-&gt;iNum</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3408,3168 3408,3333"/>
<polygon fill="#404040" stroke="none" points="3408,3360 3434,3313 3381,3313"/>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 2880,2976 L 2784,3168 L 3936,3168 L 4032,2976 Z"/>
<text x="3408" y="3004" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3408" dy="96" unicode-bidi="embed">Output &#35835;&#32773;&#20511;&#38405;&#30340;&#32534;&#21495;</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="3984,3456 4704,3456 4704,3621"/>
<polygon fill="#404040" stroke="none" points="4704,3648 4730,3601 4677,3601"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4704,5184 4704,5328 3504,5328 3504,3578"/>
<polygon fill="#404040" stroke="none" points="3504,3552 3477,3598 3530,3598"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4704,4848 4704,4965"/>
<polygon fill="#404040" stroke="none" points="4704,4992 4730,4945 4677,4945"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="5280,3984 5616,3984 5616,4389"/>
<polygon fill="#404040" stroke="none" points="5616,4416 5642,4369 5589,4369"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="5616,4608 5616,4800 4778,4800"/>
<polygon fill="#404040" stroke="none" points="4752,4800 4798,4826 4798,4773"/>
<polyline fill="none" stroke="#404040" stroke-width="12" stroke-dasharray="none" points="4128,3984 3744,3984 3744,4800 4629,4800"/>
<polygon fill="#404040" stroke="none" points="4656,4800 4609,4773 4609,4826"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 4704,3648 L 4080,3984 L 4704,4320 L 5328,3984 Z"/>
<text x="4704" y="3916" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4704" dy="96" unicode-bidi="embed">reader-&gt;aiBookId[i] != 0</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 5088,4416 L 4992,4608 L 6144,4608 L 6240,4416 Z"/>
<text x="5616" y="4444" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5616" dy="96" unicode-bidi="embed">Output &#35835;&#32773;&#30340;&#20511;&#38405;&#32534;&#21495;</tspan>
</text>
</g>
<g>
</g>
<ellipse cx="4704" cy="4800" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="5472" y="3820" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="5472" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="3912" y="3820" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3912" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 4320,4992 L 4224,5184 L 5088,5184 L 5184,4992 Z"/>
<text x="4704" y="5020" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4704" dy="96" unicode-bidi="embed">Input nextreader</tspan>
</text>
</g>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 2928,3360 L 2832,3456 L 2928,3552 L 3888,3552 L 3984,3456 L 3888,3360 Z"/>
<text x="3408" y="3388" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3408" dy="96" unicode-bidi="embed">i = 0 to reader-&gt;iMax</tspan>
</text>
</g>
<text x="4128" y="3292" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="4128" dy="96" unicode-bidi="embed">Next</tspan>
</text>
<text x="3240" y="3580" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3240" dy="96" unicode-bidi="embed">Done</tspan>
</text>
</g>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="6" stroke-dasharray="none" d="M 1200,2976 L 1056,3264 L 2256,3264 L 2400,2976 Z"/>
<text x="1728" y="3004" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1728" dy="96" unicode-bidi="embed">Output reader = reader-&gt;</tspan>
<tspan x="1728" dy="96" unicode-bidi="embed">next</tspan>
</text>
</g>
<ellipse cx="2592" cy="5568" rx="48" ry="48" fill="#C04040" stroke="#602020" stroke-width="6"/>
<text x="3264" y="2428" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3264" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="1896" y="2428" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1896" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="6" stroke-dasharray="none" d="M 528,2016 L 432,2112 L 528,2208 L 912,2208 L 1008,2112 L 912,2016 Z"/>
<text x="720" y="2044" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="720" dy="96" unicode-bidi="embed">reader</tspan>
</text>
</g>
<text x="1152" y="1948" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1152" dy="96" unicode-bidi="embed">True</tspan>
</text>
<text x="552" y="2236" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="552" dy="96" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="6" stroke-dasharray="none" d="M 288,5952 L 192,6144 L 1152,6144 L 1248,5952 Z"/>
<text x="720" y="5980" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="720" dy="96" unicode-bidi="embed">Output &#27809;&#26377;&#35813;&#35835;&#32773;</tspan>
</text>
</g>
<g>
<path fill="#C0E0FF" stroke="#6080A0" stroke-width="6" stroke-dasharray="none" d="M 336,6288 L 240,6480 L 1104,6480 L 1200,6288 Z"/>
<text x="720" y="6316" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="720" dy="96" unicode-bidi="embed">Input nextreader</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 13 KiB

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

@ -77,23 +77,163 @@ void ShowMainMenu()
int main() int main()
{ {
Book* book = NULL;
Reader* reader = NULL;
int iItem;
ShowMainMenu();/*调用ShowMainMenu函数绘制界面*/
scanf("%d", &iItem);/*提示用户输入数字*/
getchar();
while (1)
{
switch (iItem)
{
case 0:return 0;
break;
case 1:ShowLibInfo(book, reader);
break;
case 2:ShowLibBook(book);
break;
case 3:book = AddBook(book);
break;
case 4:book = DealoldBook(book);
break;
case 5:foundBook(book);
break;
case 6:foundReader_Info(reader);
break;
case 7:foundReaderInfo(reader);
break;
case 8:reader = LendBook(reader, book);
break;
case 9:returnBook(reader, book);
break;
case 10:save(book);
break;
case 11:book = read1();
break;
default:
printf("\t输入有误,请重新输入!\n");
Sleep(2000);
}
ShowMainMenu();/*调用ShowMainMenu函数绘制界面*/
scanf("%d", &iItem);/*提示用户输入数字*/
getchar();
}
return 0;
} }
//查询图书馆的总信息 //查询图书馆的总信息
void ShowLibInfo(const Book* book1, const Reader* reader1) void ShowLibInfo(const Book* book1, const Reader* reader1)
{ {
Book* book = book1;
Reader* reader = reader1;
int bookNUm = 0, readerNUm = 0, mangerNUm = 0;
while (book != NULL)
{
bookNUm++;
book = book->next;
}
while (reader != NULL)
{
readerNUm++;
reader = reader->next;
}
printf("本图书馆共有藏书%d本,读者%d人\n", bookNUm, readerNUm);
printf("按任意键返回\n");
getchar();
return;
} }
//查寻图书馆藏书信息 //查寻图书馆藏书信息
void ShowLibBook(Book* book1) void ShowLibBook(Book* book1)
{ {
Book* book = book1;
while (book != NULL)
{ // \t :制表符
printf("%d\t%s\t%s\t%s\t%d\n", book->iNum, book->acName, book->acAuthor, book->acPress, book->iAmount);
book = book->next;
}
printf("\n按任意键返回\n");
getchar();
return;
} }
//存入新书 //存入新书
Book* AddBook(Book* book1) Book* AddBook(Book* book1)
{ {
Book* book = book1;
if (book == NULL)
{
Book* tmp = (Book*)malloc(sizeof(Book));
tmp->next = NULL;
assert(tmp);
printf("输入书的编号:");
scanf("%d", &tmp->iNum);
getchar();
printf("输入书的名称:");
gets(&tmp->acName);
printf("输入书的作者:");
gets(tmp->acAuthor);
printf("输入书的出版社:");
gets(tmp->acPress);
printf("输入书的库存量:");
scanf("%d", &tmp->iAmount);
book = tmp;
printf("按任意键返回\n");
getchar();
return book;
return;
}
while (1)
{
while (book->next == NULL)
{
int flag = 1;
while (flag)
{
Book* tmp = (Book*)malloc(sizeof(Book));
tmp->next = NULL;
assert(tmp);
printf("输入书的编号:");
scanf("%d", &tmp->iNum);
getchar();
printf("输入书的名称:");
gets(&tmp->acName);
printf("输入书的作者:");
gets(tmp->acAuthor);
printf("输入书的出版社:");
gets(tmp->acPress);
printf("输入书的库存量:");
scanf("%d", &tmp->iAmount);
book->next = tmp;
printf("是否继续输入:1==>继续\t0==>结束\t");
scanf("%d", &flag);
getchar();
if (flag == 0)
{
printf("按任意键返回\n");
getchar();
return book1;
}
}
}
book = book->next;
}
printf("按任意键返回\n");
getchar();
return;
} }
@ -101,23 +241,128 @@ Book* AddBook(Book* book1)
//旧书处理 //旧书处理
Book* DealoldBook(Book* book1) Book* DealoldBook(Book* book1)
{ {
Book* book = book1;
Book* prev = book1;
printf("输入要处理旧书的编号:");
int id;
scanf("%d", &id);
getchar();
while (book != NULL)
{
if (id == book->iNum)
{
if (book1 == book)
{
book = book->next;
free(prev);
return book;
}
prev->next = book->next;
free(book); // free():释放资源
printf("已将旧书处理掉!\n");
printf("按任意键返回\n");
getchar();
return book1;
}
prev = book;
book = book->next;
}
printf("没有找到该图书\n");
printf("按任意键返回\n");
getchar();
return book1;
} }
//根据书名检索书刊信息 //根据书名检索书刊信息
void foundBook(Book* book1) 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;
} }
//查询读者的借阅信息 //查询读者的借阅信息
void foundReader_Info(Reader* reader1) 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;
} }
//查询读者信息 //查询读者信息
void foundReaderInfo(Reader* reader1) 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;
//读者借书 //读者借书
Reader* LendBook(Reader* reader1, Book* book1) Reader* LendBook(Reader* reader1, Book* book1)
{ {

Loading…
Cancel
Save