mty.8.画图.伪代码

mtyc13.md
Tingyu Meng 2 years ago
parent ab37e15ad6
commit 57fbf4c517

@ -0,0 +1,2 @@
Step 1:利用for循环给i赋值为0
Step 2:利用of条件语句和循环判断是否此学生并显示结果

@ -0,0 +1,343 @@
<svg host="65bd71144e" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="471px" height="1127px" viewBox="-0.5 -0.5 471 1127" content="&lt;mxfile&gt;&lt;diagram id=&quot;A5GCk3qJTjUgkphzyPaP&quot; name=&quot;第 1 页&quot;&gt;5Vvdc5s4EP9rPHN9iAcQCPyYOOndPdxdZ3Iz1z4qRjGkgDxCju3+9ScZgdGHbRoDbtMXgjb6YHd/u9pdyRMwz7e/U7RK/iIxziaeE28n4H7ieVEY8acg7CqCGwWzirKkaSxpB8Jj+g1LoiOp6zTGpdKREZKxdKUSF6Qo8IIpNEQp2ajdnkmmrrpCS2wQHhcoM6n/pTFLJF9eeKD/gdNlUq/sQslfjurOkpMyQTHZtEjgYQLmlBBWveXbOc6E8Gq5VOM+Hvlv82EUF6zLAB9WI15RtpbMyQ9ju5pbHHPmZbMgBf9zl7A84y2Xv1bdRZ+jnyBJJVnThewFpNYQXWLZyw8a/jlwMMkxozveh+IMsfRVnR5JDS6bfgcm+Yvk084zMFh+JJQ97f5GOTaYp2RdxDiWzG6SlOHHFdqzseHgtsniFVOGt6elYbJZD4ASGdI2boBsbw5Ac31JS1ogq8ddIpkrgSE0wTAbCQuhwfGfBcNLTEUfg3lurSvxuqJkgcvyPCCe0OLrcg+hf9YsS4W49nQVVX3AJlRh08CoDRtvINiEs+vgZmbiJvBGAo7J8gE4Lz8xcLxgROD4pvmNApxqq1GRE44EnHptK3LYT4ycMT1ODdKxgXOxe5FDP5GUr9KI0neAIkrfidQpKqDKUZqYms/oJjn3Uslx+dDdZ95wpkHd/CKadeN+q7R2svVDSdwDkbpfOhAMJnLPEPnLXiYia+GP4sZUAU1I/rTuYO4DmLWKRRAB066Bxa6DPuzajM0HsuvxbbhCtQGo8xMNiEx/PDfa3muhM44KfNBJBW+R3JVSpXrzVKQ5VuIcXClcuy7T0a/I9MUZXRMl3DhTFypxwpSL9HSosG99wjTlH87j4kviB5sYqx2u/5hC2zmDjo77llK0a3VbiQ7l8XWA7uZmQNNtNeNbfRs0g2tWxyvikd+4BhjqNCXBW7QkBVfXqqU+SW006p2Pa57TLa4rv6JdfsVskUgo9B70AF8NB/3QEvQ4lqDH76PqZobkjPI3D2ZMJHQ8MYRL1jDakjpnmKliQ1m65NK/X3DGhejvhFjSBcpu5T/yNI7F8DuKy/QbetpPJWQqUcfnDe4mwb2Ya81I2dIAo+QrnpOM0IPFP6dZppH6UIenxaD1iUFLHbYaKOhDG2a0/lbX50yhp6RI7hm/193FjRFN+aoSoDuMOwsC+zpH42MXnuqvur+zqxlOur8YEY4YXStbnqW6Bccqb0GzvPW4QauPGUHsN+7IUC4cffUs2Zo7m5R7m2m5zife3ObyToz4cHQburhaNvB2o/k36Fm2GzjUIc+1UhfLMQ8c65wHmqnLMLBEHBjvBpehY+67w+HyWomW5RgpvLRG1JlpM9Hqgsviu3FZvCN3GdpKkkPBMrz4qKEVD0a+mgmDETPh0BI6DpQJA6gqzHUGih31il+zUF+5cGjmZsI+5wmi3LLa9rW/PGIxyarPS9MnuH8vZhiNaoZ9pmVhFCpp2dSBI9qh5e5TeGl4fqQipdnhLBjGDPV1+jfDDudCtRVt0G7/vbo9yFIGrGsdmD684qrk4VrrH+3aRoyf0Xpv2XrdhBKGWLuO0gJJVYVpweauLNDqX1KJb6ADPG+mK8Mx7dR2MO/1YaZmzvtQxIauzvi3Yf2YF2l3pRwQmI5ssMtSZoJciDKeLqL3WtvzA63UCs0cIxiotheaqW8sGPtVZK+XuQNLfjeY7M0M/L2fKriwy6lCYMq7j1OF8OJ0Gm9T9rn1Lg/vZOsQKInGIU6Kb8UFex22vZx+9pKsfHd5Wrvm5s8cTQ2nys2+frA061ZuPl+37phRvaVubbkgf7omwbhj+9C9ILFPhsoFoViOPWr4P3hGFLiOXSnnAok33JXizcPPQiqtHn5cAx7+Bw==&lt;/diagram&gt;&lt;/mxfile&gt;">
<defs/>
<g>
<path d="M 70 60 L 70 83.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 70 88.88 L 66.5 81.88 L 70 83.63 L 73.5 81.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="0" y="0" width="140" height="60" rx="9" ry="9" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 138px; height: 1px; padding-top: 30px; margin-left: 1px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
SortbyName
</div>
</div>
</div>
</foreignObject>
<text x="70" y="34" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
SortbyName
</text>
</switch>
</g>
<path d="M 70 250 L 70 273.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 70 278.88 L 66.5 271.88 L 70 273.63 L 73.5 271.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="10" y="190" width="120" height="60" rx="9" ry="9" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 22 190 L 22 250 M 118 190 L 118 250" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 94px; height: 1px; padding-top: 220px; margin-left: 24px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
Integer i
</div>
</div>
</div>
</foreignObject>
<text x="71" y="224" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
Integer i
</text>
</switch>
</g>
<path d="M 71.88 340 L 76.08 407.23" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 76.4 412.47 L 72.47 405.7 L 76.08 407.23 L 79.46 405.27 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="10" y="280" width="120" height="60" rx="9" ry="9" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 22 280 L 22 340 M 118 280 L 118 340" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 94px; height: 1px; padding-top: 310px; margin-left: 24px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
Integer j
</div>
</div>
</div>
</foreignObject>
<text x="71" y="314" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
Integer j
</text>
</switch>
</g>
<path d="M 70 150 L 70 183.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 70 188.88 L 66.5 181.88 L 70 183.63 L 73.5 181.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="10" y="90" width="120" height="60" rx="9" ry="9" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 22 90 L 22 150 M 118 90 L 118 150" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 94px; height: 1px; padding-top: 120px; margin-left: 24px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
Integer t
</div>
</div>
</div>
</foreignObject>
<text x="71" y="124" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
Integer t
</text>
</switch>
</g>
<path d="M 143 438 L 236.63 438" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 241.88 438 L 234.88 441.5 L 236.63 438 L 234.88 434.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 78 463 L 78 1086.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 78 1091.88 L 74.5 1084.88 L 78 1086.63 L 81.5 1084.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 45.5 425.5 L 68.67 416.59 Q 78 413 87.33 416.59 L 133.67 434.41 Q 143 438 133.67 441.59 L 87.33 459.41 Q 78 463 68.67 459.41 L 22.33 441.59 Q 13 438 22.33 434.41 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 128px; height: 1px; padding-top: 438px; margin-left: 14px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
j=0 to n-2
</div>
</div>
</div>
</foreignObject>
<text x="78" y="442" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
j=0 to n-2
</text>
</switch>
</g>
<path d="M 243 438 L 243 486.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 243 491.88 L 239.5 484.88 L 243 486.63 L 246.5 484.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 243 473 L 240.63 496.66" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 240.11 501.89 L 237.33 494.57 L 240.63 496.66 L 244.29 495.27 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 238.63 543 L 241.86 646.64" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 242.03 651.88 L 238.31 645 L 241.86 646.64 L 245.31 644.78 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 238.63 543 L 241.86 646.64" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 242.03 651.88 L 238.31 645 L 241.86 646.64 L 245.31 644.78 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 238.63 543 L 241.86 646.64" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 242.03 651.88 L 238.31 645 L 241.86 646.64 L 245.31 644.78 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 188 523 L 153 523 Q 143 523 143 533 L 143 1036.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 143 1041.88 L 139.5 1034.88 L 143 1036.63 L 146.5 1034.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 198 513 L 203 508 Q 208 503 218 503 L 258 503 Q 268 503 275.07 510.07 L 281.54 516.54 Q 288 523 280.93 530.07 L 274.46 536.54 Q 268 543 258 543 L 218 543 Q 208 543 200.93 535.93 L 194.46 529.46 Q 188 523 193 518 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 523px; margin-left: 189px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
t=0 t0 m-1
</div>
</div>
</div>
</foreignObject>
<text x="238" y="527" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
t=0 t0 m-1
</text>
</switch>
</g>
<rect x="163" y="408" width="40" height="30" fill="none" stroke="none" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 423px; margin-left: 183px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: nowrap;">
true
<br/>
</div>
</div>
</div>
</foreignObject>
<text x="183" y="427" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
true
</text>
</switch>
</g>
<path d="M 393 593 L 393 633 Q 393 643 383 643 L 266 643 Q 256 643 255.45 633.02 L 250.85 549.36" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 250.56 544.12 L 254.44 550.91 L 250.85 549.36 L 247.45 551.3 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 243 713 L 243 731.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 243 736.88 L 239.5 729.88 L 243 731.63 L 246.5 729.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="163" y="653" width="160" height="60" rx="9" ry="9" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 179 653 L 179 713 M 307 653 L 307 713" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 125px; height: 1px; padding-top: 683px; margin-left: 180px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
SwapFloat(&amp;stu[i].sum,
<br/>
&amp;stu[i].sum)
</div>
</div>
</div>
</foreignObject>
<text x="243" y="687" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
SwapFloat(&amp;stu[i].sum...
</text>
</switch>
</g>
<path d="M 243 798 L 243 806.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 243 811.88 L 239.5 804.88 L 243 806.63 L 246.5 804.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="163" y="738" width="160" height="60" rx="9" ry="9" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 179 738 L 179 798 M 307 738 L 307 798" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 125px; height: 1px; padding-top: 768px; margin-left: 180px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
SwapFloat(&amp;stu[i].sum,
<br/>
&amp;stu[i].aver)
</div>
</div>
</div>
</foreignObject>
<text x="243" y="772" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
SwapFloat(&amp;stu[i].sum...
</text>
</switch>
</g>
<path d="M 243 873 L 243 906.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 243 911.88 L 239.5 904.88 L 243 906.63 L 246.5 904.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="163" y="813" width="160" height="60" rx="9" ry="9" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 179 813 L 179 873 M 307 813 L 307 873" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 125px; height: 1px; padding-top: 843px; margin-left: 180px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
SwapFloat(&amp;stu[i].num,
<br/>
&amp;stu[i].num)
</div>
</div>
</div>
</foreignObject>
<text x="243" y="847" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
SwapFloat(&amp;stu[i].num...
</text>
</switch>
</g>
<path d="M 243 973 L 243 1033 Q 243 1043 233 1043 L 149.37 1043" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 144.12 1043 L 151.12 1039.5 L 149.37 1043 L 151.12 1046.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="163" y="913" width="160" height="60" rx="9" ry="9" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 179 913 L 179 973 M 307 913 L 307 973" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 125px; height: 1px; padding-top: 943px; margin-left: 180px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
SwapChar[stu[i].name,
<br/>
stu[j].name]
</div>
</div>
</div>
</foreignObject>
<text x="243" y="947" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
SwapChar[stu[i].name,...
</text>
</switch>
</g>
<path d="M 143 1043 L 113 1043 Q 103 1043 102.75 1033 L 90.79 551.77" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 90.66 546.52 L 94.34 553.43 L 90.79 551.77 L 87.34 553.6 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<ellipse cx="143" cy="1043" rx="3" ry="3" fill="rgb(0, 0, 0)" stroke="none" pointer-events="all"/>
<rect x="133" y="1033" width="20" height="20" fill="none" stroke="none" pointer-events="all"/>
<rect x="120" y="1065" width="120" height="60" rx="9" ry="9" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 1095px; margin-left: 121px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
End
</div>
</div>
</div>
</foreignObject>
<text x="180" y="1099" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
End
</text>
</switch>
</g>
<rect x="298" y="498" width="50" height="30" fill="none" stroke="none" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 513px; margin-left: 323px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: nowrap;">
next
</div>
</div>
</div>
</foreignObject>
<text x="323" y="517" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
next
</text>
</switch>
</g>
<rect x="188" y="538" width="50" height="30" fill="none" stroke="none" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 553px; margin-left: 213px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: nowrap;">
done
</div>
</div>
</div>
</foreignObject>
<text x="213" y="557" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
done
</text>
</switch>
</g>
<path d="M 18 513 L 23 508 Q 28 503 38 503 L 83 503 Q 93 503 100.07 510.07 L 106.54 516.54 Q 113 523 105.93 530.07 L 99.46 536.54 Q 93 543 83 543 L 38 543 Q 28 543 20.93 535.93 L 14.46 529.46 Q 8 523 13 518 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 103px; height: 1px; padding-top: 523px; margin-left: 9px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
t=0 t0 m-1
</div>
</div>
</div>
</foreignObject>
<text x="61" y="527" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
t=0 t0 m-1
</text>
</switch>
</g>
<path d="M 288 523 L 400 520.25 Q 410 520 410 530 L 410 543" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<rect x="350" y="543" width="120" height="50" rx="7.5" ry="7.5" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 362 543 L 362 593 M 458 543 L 458 593" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 94px; height: 1px; padding-top: 568px; margin-left: 364px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
SwapFloat(&amp;stu[t]),
<br/>
&amp;stu[j].score[t]
</div>
</div>
</div>
</foreignObject>
<text x="411" y="572" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
SwapFloat(&amp;stu[t...
</text>
</switch>
</g>
</g>
<switch>
<g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/>
<a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank">
<text text-anchor="middle" font-size="10px" x="50%" y="100%">
Text is not SVG - cannot display
</text>
</a>
</switch>
</svg>

After

Width:  |  Height:  |  Size: 31 KiB

Loading…
Cancel
Save