Merge branch 'c11流程图伪代码'

c1函数zyf
zhouyufan 2 years ago
commit 8b474f8dbd

@ -0,0 +1,169 @@
<svg host="65bd71144e" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="321px" height="791px" viewBox="-0.5 -0.5 321 791" content="&lt;mxfile&gt;&lt;diagram id=&quot;hyrVUyb55vLDNn8GanxI&quot; name=&quot;第 1 页&quot;&gt;zVjLdpswEP2WLnROs6CHh41haRy7XTTdZJFuZSNjtUKiQsR2vr4DkrAxuGmblmSFuDNCmqur0QgULPLDR4mL3Z1ICUO+mx5QcIt833MnE3jUyFEjs5mngUzS1DidgHv6RGxPg1Y0JWXHUQnBFC264EZwTjaqg2Epxb7rthWsO2qBM9ID7jeY9dEHmqqdRqOpe8I/EZrt7Mieayw5ts4GKHc4FfszKFiiYCGFULqVHxaE1eRZXnS/1RVrOzFJuPqdDmYhHjGrTGxmXupogyUpxG5eueDwSHYqZ/DmQVO71z5XZ2CgUlRyY7zMKArLjBivoI0eZENETpQ8goskDCv62P06NuuXtX6nEKFhohyO2O9FnGPK+1EzBmqqg93vqCL3BW7mvgdBDxHwSKQih19T0A/OdPBjowazHayO9mfaMtDuTFYWewkbYY+Nr8gPcV4HmcE4yZdR9BD09TAdSQ82pwxSwF6VgngkCoKBJBA2oQvWCTz8UdWJKVmLg1PSJ8ozFMzBYy1kSqQDcBM+pDmZwZ5qbG5hwAKnadujRRktldOM4KhjQbTVcNpkcCakBmW2fj+FaCEc9/S80X5bwZWzxTllR+29ELwUDFhp/NoFNQF8pmsigUQBG9+9E1xcOuhud4QzoZsLWCpKpH7JoUepM0I7eNmcUvXQXvAhtOFBUlAOZjQzbHyrSkW3x8YYtmO5G5hp2aGYUU54lZfnbmFmnkx7vGBtHCWKi5UwBqkTzJCJke2lxSzqwOesZS2UEvmfrboZ77Kr776jeSGkwlw9z+Bn7zp3GyhJ/oq9y6X2i8MbEODw1hrchWu8+Z5JUfHUOdtbSmJe2gSVnOKWOKVVqX0C+4mUlgXDJkzKa6XaAQ+OObO0iSqKmbYJOCG3rC51eqb6A4492LR1RyRV3Y6OPnq1UGRuO+uJdoO8tuoQIX87e2bY/1nNX6ZEz/W1Jlz9gPeb5zcH7Lo+Tw9AOlFiRYEeQxkcHZq1LpMA6y3Ug+us1M9Tv+EGYH3aWPDixB2hCJt1i7C2RD+rwjx/oAwL/0EZNu2fwMsZShIUB2gZovgWxatX4GTympx4/Up9lEIs7hdi3hWa/nklFg/oIELJstHBFEVTNJ/WjfktmocNskLJrG7EPooWjWlmnOFSEd32GGtSP0kNQ+NvqyAcU0KvdL317E+Jcw2NdcG1gz8johBFUa0RnWfm8Z+ml66Q/oNSpu6YSulfhMdRysC1zxvt6jtw8VtOULKqDxydZeKokQzIB5ioUgjlgzqoN6eVcDKmVgZO67eWZmfR/yMEXk8/KBvb2W/eYPkT&lt;/diagram&gt;&lt;/mxfile&gt;">
<defs/>
<g>
<path d="M 60 80 L 60 163.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 60 168.88 L 56.5 161.88 L 60 163.63 L 63.5 161.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<ellipse cx="60" cy="40" rx="40" ry="40" 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: 78px; height: 1px; padding-top: 40px; margin-left: 21px;">
<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;">
main
</div>
</div>
</div>
</foreignObject>
<text x="60" y="44" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
main
</text>
</switch>
</g>
<path d="M 120 200 L 193.63 200" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 198.88 200 L 191.88 203.5 L 193.63 200 L 191.88 196.5 Z" fill="rgb(0, 0, 0)" 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: 1px; height: 1px; padding-top: 200px; margin-left: 160px;">
<div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; background-color: rgb(255, 255, 255); white-space: nowrap;">
X&gt;N
</div>
</div>
</div>
</foreignObject>
<text x="160" y="203" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">
X&gt;N
</text>
</switch>
</g>
<path d="M 60 230 L 60 303.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 60 308.88 L 56.5 301.88 L 60 303.63 L 63.5 301.88 Z" fill="rgb(0, 0, 0)" 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: 1px; height: 1px; padding-top: 270px; margin-left: 60px;">
<div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; background-color: rgb(255, 255, 255); white-space: nowrap;">
X&lt;N
</div>
</div>
</div>
</foreignObject>
<text x="60" y="273" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">
X&lt;N
</text>
</switch>
</g>
<rect x="0" y="170" width="120" height="60" 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: 200px; 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;">
<ol class="linenums" style="box-sizing: border-box; margin: 0px; padding: 0px; list-style-type: none; color: rgb(51, 51, 51); font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.6px; text-align: justify;">
<li class="L1" style="box-sizing: border-box; margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-bottom: 0px; list-style-type: none; margin-bottom: 0px !important;">
<code style="box-sizing: border-box; font-size: 12px; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; padding: 0px; margin: 0px; background-color: transparent; border-radius: 3px; display: inline; max-width: initial; overflow: initial; line-height: inherit; overflow-wrap: normal; border: 0px;">
<span class="typ" style="box-sizing: border-box; margin-top: 0px; margin-right: 0px; margin-left: 0px; padding: 0px; margin-bottom: 0px !important; color: rgb(102, 0, 102);">
WritetoFile
</span>
</code>
</li>
<li></li>
</ol>
</div>
</div>
</div>
</foreignObject>
<text x="60" y="204" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
WritetoFile
</text>
</switch>
</g>
<rect x="200" y="170" width="120" height="60" 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: 200px; margin-left: 201px;">
<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;">
结束
</div>
</div>
</div>
</foreignObject>
<text x="260" y="204" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
结束
</text>
</switch>
</g>
<path d="M 60 370 L 60 443.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 60 448.88 L 56.5 441.88 L 60 443.63 L 63.5 441.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="0" y="310" 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: 340px; 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;">
输入学号和姓名
</div>
</div>
</div>
</foreignObject>
<text x="60" y="344" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
输入学号和姓名
</text>
</switch>
</g>
<path d="M 60 510 L 60 583.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 60 588.88 L 56.5 581.88 L 60 583.63 L 63.5 581.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="0" y="450" 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: 480px; 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;">
输入成绩
</div>
</div>
</div>
</foreignObject>
<text x="60" y="484" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
输入成绩
</text>
</switch>
</g>
<path d="M 60 650 L 60 723.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 60 728.88 L 56.5 721.88 L 60 723.63 L 63.5 721.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="0" y="590" 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: 620px; 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;">
保存到student.txt
</div>
</div>
</div>
</foreignObject>
<text x="60" y="624" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
保存到student.txt
</text>
</switch>
</g>
<rect x="0" y="730" width="120" height="60" rx="9" ry="9" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
</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: 15 KiB

@ -0,0 +1,5 @@
11·输出n个学生的学号、姓名及m门课程的成绩到文件student.txt中
WritetoFile
step1:输入学生的学号和姓名
step2:查找该学生的所有课程成绩
step3:将成绩保存到文件student.txt中
Loading…
Cancel
Save