Compare commits

...

3 Commits

@ -0,0 +1,8 @@
INPUT 保存数据
printf 请输入文件名
IF 文件为空 return
ELSE
DO printf
stu[i].number,stu[i].name,stu[i].score END
THEN 关闭文件

@ -0,0 +1,149 @@
<svg host="65bd71144e" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="321px" height="471px" viewBox="-0.5 -0.5 321 471" content="&lt;mxfile&gt;&lt;diagram id=&quot;wXX27kkv_z3-Sg5C6y8i&quot; name=&quot;Page-1&quot;&gt;xVddb5swFP01ltqXio9A4DEEsj1006Ro2vo0OeCAJYOZMU3SXz87GAgxzdI1oy9gH1/b+Nzjey/AXub7TwyW2ReaIAIsI9kDOwSWNXc98ZTAoQFcY9YAKcNJA5k9sMYvSIGGQmucoGpgyCklHJdDMKZFgWI+wCBjdDc021Iy3LWEKdKAdQyJjv7ACc8a1HOMHv+McJq1O5uGGslha6yAKoMJ3Z1AdgTsJaOUN618v0REctfy0sxbvTLafRhDBb9mguK94of2bCgRR1XdghbiFWQ8J6JniibaY/5TtI0HR/WeTkZC6WCj7RxUp9lCrvvqRyqoojWLlZWl/ApZipSV3REkhIVojjg7CBOGCOT4ebg6VC5OO7ueBdFQRIyTorZ+hqRWi1bwGf1KIIc6XYQI1UmWdhnmaF3C4wF2QvdD5tSaiHG0v8yDfsJ2Qiuw7to03V2vQXOmsOxEf3Pj/Zy4GidvVM6/qcDWVeBMpAJbO3FZ8+oOWO7vWl7PAEQzEKyAH4LIAYsQ+B6IXOA7IDBkwwvBIgKRBTwD+EsQrUCwBJ6v0cZoXSQoUTRNoCLXGajIHJOROSKj2Q1kZJofoyNH15FpjNN0cyE52pG3pXzb4dfvj4+6HjKab+rqQyJK5+MpQsr8CikUyULma9GLCawqHI+nI/MkGfWp6Zbp6L1RR039RrHYpOPfng35t80zXptPULNO8/j5Qu6ZI+fOcKFG+dpCRx9157nKbZ7mtqdoPXqJH+FG1H12wFCFX+DmOGQMHQgJTgvpXcE9YgKQcsai0lqogRwniZyo3KYqOrUY6Oqov9yC+URX3ddzBhL6ZXdbTFABc3SvEzVhAaGpZOy6j4V+9xahX0+ok4T+9jyD2G9NJIh281NFMHEHt6KMILKI2DDRSmWr4jVwAgyc8KGo8w1il02EmC4aVDFlSE8ukxcbZwFuTHHW/1KcXshvY0IrdLct73XyGsdcLvAsF+aSpeZ5LPM84BvSwFsAf3VFvTfpH8MZ/bNR+h2dfv/t9Itu/9/a5JX+59+O/gA=&lt;/diagram&gt;&lt;/mxfile&gt;">
<defs/>
<g>
<path d="M 70 70 L 70 93.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 70 98.88 L 66.5 91.88 L 70 93.63 L 73.5 91.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<ellipse cx="70" cy="35" rx="70" ry="35" 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: 35px; 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;">
save_data
</div>
</div>
</div>
</foreignObject>
<text x="70" y="39" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
save_data
</text>
</switch>
</g>
<path d="M 70 140 L 70 173.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 70 178.88 L 66.5 171.88 L 70 173.63 L 73.5 171.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="15" y="100" width="110" height="40" rx="6" ry="6" 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: 108px; height: 1px; padding-top: 120px; margin-left: 16px;">
<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;">
puts("保存数据“)
</div>
</div>
</div>
</foreignObject>
<text x="70" y="124" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
puts("保存数据“)
</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"/>
<path d="M 70 180 L 140 215 L 70 250 L 0 215 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: 138px; height: 1px; padding-top: 215px; 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;">
fp==NULL
</div>
</div>
</div>
</foreignObject>
<text x="70" y="219" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
fp==NULL
</text>
</switch>
</g>
<path d="M 140 215 L 203.63 215" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 208.88 215 L 201.88 218.5 L 203.63 215 L 201.88 211.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: 216px; margin-left: 176px;">
<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;">
YES
</div>
</div>
</div>
</foreignObject>
<text x="176" y="219" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">
YES
</text>
</switch>
</g>
<ellipse cx="265" cy="210" rx="55" ry="30" 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: 108px; height: 1px; padding-top: 210px; margin-left: 211px;">
<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;">
perror(filename)
</div>
</div>
</div>
</foreignObject>
<text x="265" y="214" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
perror(filename)
</text>
</switch>
</g>
<path d="M 70.74 340 L 71.56 373.64" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 71.69 378.89 L 68.02 371.97 L 71.56 373.64 L 75.02 371.8 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"/>
<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: 310px; margin-left: 11px;">
<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;">
printf
<br/>
stu[i].number
<br/>
stu[i].name
<br/>
stu[i].score
</div>
</div>
</div>
</foreignObject>
<text x="70" y="314" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
printf...
</text>
</switch>
</g>
<ellipse cx="72.5" cy="425" rx="62.5" ry="45" 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: 123px; height: 1px; padding-top: 425px; margin-left: 11px;">
<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;">
fclose(fp)
<br/>
printf("保存&amp;成功“)
</div>
</div>
</div>
</foreignObject>
<text x="73" y="429" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
fclose(fp)...
</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: 12 KiB

@ -0,0 +1,184 @@
<svg host="65bd71144e" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="311px" height="531px" viewBox="-0.5 -0.5 311 531" content="&lt;mxfile&gt;&lt;diagram id=&quot;i96Nez9GN15IXfs4PTej&quot; name=&quot;Page-1&quot;&gt;zVhRb5swEP41lrqHVoCBwGNI6PbQdZOiaeujAyZ4AhwZp0n263eASQKmbdqkaaWqvTvfGd/n83d2EZ7km6+CLNPvPKYZsox4g/AUWdZoNILflWHbGFzDbgwLweLGZO4NM/aPKqOhrCsW07LjKDnPJFt2jREvChrJjo0Iwdddt4Rn3a8uyYJqhllEMt36m8UybayeY+zt3yhbpO2XTUON5KR1VoYyJTFfH5hwiPBEcC4bKd9MaFZh1+LSxN0+MbpbmKCFPCZA4f5IspXKTa1LbttkaQy5K7XgBfwJUplnoJkgNu6Vz5MrUKaSr0SkvNRXJBELqrzwLnuoGspzKsUWXATNiGSP3dmJ2r/Fzm+fIggqy+GMLS3jZCkYrNVyM1hKMBcgLSoJhS7yfORjFDrIm6LA0LHJMqi5CpJ1yiSdLUmd4RqqfgimRyok3TwPlA6BCrDa8lKHZqTU9b4CzfaApAfV1/qdAhrWQCvlKoaF38hN/Rk8vf91d6fhI1Kez1flZfCxnQ4+5iBAjg6QdwaAHA0gumHyyvjyoSVj90rG9AYgMQYgcc8AielpmDyEMx2PIh5XlAxalJGyZNHbCOYE6lChP3lNAy14uAeeZfg3TneShtJU3CHL9qbq78PAVA0ValPVIO9yOgp3230lhVeV+gdkA9bUaA8HI9MqB6NVtq1SwHoOgir14XBsH1Zrbdwb24Wr9wvbvlTDcPUeCQ0BuoHnVsJ4isYgjJBvI/8WhTYKxtUPdA+/dgMf30LeBIUeGt+iIKycxx7ygrqxgJtfCzCVU0dB2xnV8wQo0DdT8FUR01ht0eV5FZtH8qpzjsZj6uC/lkE+f31jvbybqjs/qVldJsJGb5OOpjTvhYnOR2hYv33c/xjkuDsyh4cGDgQt2T8yr4eMbjGQjC0KkDOaVHe86mQwuNiPlXnOpeT5biPVA0JNhXbX9hcOFH7+RF2rkBP38tq0elvQnYEnSUlP7iajIw7gO7wQbHuA8p0LUb6tP4vqN0KiPxLgHoycgCFnelNGXFBQ/oLy+Vh76Or3Xqxt+x9UNM5A0XiXKhr9DXBM0azyZ8cJVMGnKybbvWQx6e+IJMp4Sa+S5cc+r/qwOM77wQLq/r9CDY/v/7WGw/8=&lt;/diagram&gt;&lt;/mxfile&gt;">
<defs/>
<g>
<path d="M 59.46 70 L 58.65 94.29" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 58.47 99.53 L 55.21 92.42 L 58.65 94.29 L 62.21 92.66 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<ellipse cx="60" cy="35" rx="55" ry="35" 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: 108px; height: 1px; padding-top: 35px; margin-left: 6px;">
<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;">
fprint
<br/>
打印
</div>
</div>
</div>
</foreignObject>
<text x="60" y="39" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
fprint...
</text>
</switch>
</g>
<path d="M 57.5 100 L 115 140 L 57.5 180 L 0 140 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: 113px; height: 1px; padding-top: 140px; 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==NULL
</div>
</div>
</div>
</foreignObject>
<text x="58" y="144" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
student.txt==NULL
</text>
</switch>
</g>
<ellipse cx="257.5" cy="140" rx="52.5" ry="30" 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: 103px; height: 1px; padding-top: 140px; margin-left: 206px;">
<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;">
exit(0)
</div>
</div>
</div>
</foreignObject>
<text x="258" y="144" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
exit(0)
</text>
</switch>
</g>
<path d="M 105 139.5 L 198.63 139.5" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 203.88 139.5 L 196.88 143 L 198.63 139.5 L 196.88 136 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: 140px; margin-left: 155px;">
<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;">
YES
</div>
</div>
</div>
</foreignObject>
<text x="155" y="143" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">
YES
</text>
</switch>
</g>
<path d="M 57.5 290 L 57.5 303.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 57.5 308.88 L 54 301.88 L 57.5 303.63 L 61 301.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="0" y="240" width="115" height="50" rx="7.5" ry="7.5" 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: 113px; height: 1px; padding-top: 265px; 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="58" y="269" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
将学生人数和课程写入文件
</text>
</switch>
</g>
<path d="M 57.5 180 L 57.5 233.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 57.5 238.88 L 54 231.88 L 57.5 233.63 L 61 231.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 flex-end; justify-content: unsafe flex-start; width: 1px; height: 1px; padding-top: 208px; margin-left: 48px;">
<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: left;">
<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;">
NO
</div>
</div>
</div>
</foreignObject>
<text x="48" y="208" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px">
NO
</text>
</switch>
</g>
<path d="M 57.5 360 L 57.5 383.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 57.5 388.88 L 54 381.88 L 57.5 383.63 L 61 381.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="0" y="310" width="115" height="50" rx="7.5" ry="7.5" 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: 113px; height: 1px; padding-top: 335px; 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;">
printf
<br/>
stu[i].score[j]
</div>
</div>
</div>
</foreignObject>
<text x="58" y="339" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
printf...
</text>
</switch>
</g>
<path d="M 57.5 440 L 57.5 473.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 57.5 478.88 L 54 471.88 L 57.5 473.63 L 61 471.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="0" y="390" width="115" height="50" rx="7.5" ry="7.5" 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: 113px; height: 1px; padding-top: 415px; 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;">
printf
<br/>
stu[i].sum
<br/>
stu[i].aver
</div>
</div>
</div>
</foreignObject>
<text x="58" y="419" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
printf...
</text>
</switch>
</g>
<ellipse cx="57.5" cy="505" rx="57.5" ry="25" 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: 113px; height: 1px; padding-top: 505px; 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;">
fclose(fp)
</div>
</div>
</div>
</foreignObject>
<text x="58" y="509" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
fclose(fp)
</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: 15 KiB

@ -0,0 +1,175 @@
<svg host="65bd71144e" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="451px" height="301px" viewBox="-0.5 -0.5 451 301" content="&lt;mxfile&gt;&lt;diagram id=&quot;LEZUZaz-lYDdFl1WoiNV&quot; name=&quot;Page-1&quot;&gt;5ZhLb6MwEMc/ja+VgTiYI3ntXlaqtoftHt3gAhLgyDFNsp9+x2BeNX1tUxptJZTM/LGx/ZvxA5C3zI/fJNslP0TEM+Ti6Ii8FXJd3/fhVwunWpjjWS3EMo1qyemEm/QPNyI2aplGfD8oqITIVLobiltRFHyrBhqTUhyGxe5FNmx1x2JuCTdbltnqrzRSSa1Sgjv9O0/jpGnZweZOzprCRtgnLBKHnuStkbeUQqjayo9Lnml2DZe63uaJu23HJC/UayoY7nt1asbGIxiqcQtRwN8iUXkGngMmP6bqtmf/BhtfEeOtdIBx45yMUzehn/tkJ420F6XcmlJuSwOyiIucK3mCIpJnTKUPw0cxE8+4LddWvRYpNOJik3puEwmTeU4TiOYRismYK1OrAwdGrxudVOF8IhbuBGyBoDzd9p1eLe121SrvDDGBuVYxMkn/zjANAD9Hc4pM7Whe4cAZEp29QLTyrrlMYWhcnhtzMBVm8hWS1sFT4Zx/CZzORDhN2w8sK81Df3IW3UuRb1IA6s4z6NHiToIVawutKQo3aAEGQXSDgpFwZBmcGnQUDkmq+M2OVQM9wLllGBnTNJeKH5/nZYMwFbxHe09g/EN3hmj3o6R3fqD4/eiIha4o8zsux6ARFK5QODfQFr4FTYqyiHhkyHw8uMe79hg4ZwQcOQM4aoNj+WiuATYfBZ42oIN0dXHYHDIht8DiFksWjYKbI0o1srWvp2oYXBy49sVjCnCOTe6Nm8i/LezNeAYruz/VRomtQe9VGfHq7P6KlQom3gwFG7SeoUWoL0iqgKAFttB9ei75E+aSa2OdJpeat/J+Lk32quBYg96KEvb45zKpPiisdSaFFFFQAhRU9sVmkjebclXy7UzSkw0OVSszDwNaVGv5ElHfbILwEqWnZojorC1UHSvciizRuyTA1QZc3qcj9nzy8mTFH4XYPmrYiPP/DbHnkRHEZAQxeTNicLtPafUnnO57pLf+Cw==&lt;/diagram&gt;&lt;/mxfile&gt;">
<defs/>
<g>
<path d="M 120 140 L 167.36 35.8" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 169.54 31.02 L 169.83 38.84 L 167.36 35.8 L 163.45 35.94 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 120 140 L 165.72 89.71" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 169.25 85.83 L 167.13 93.36 L 165.72 89.71 L 161.95 88.65 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 120 140 L 173.64 140" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 178.89 140 L 171.89 143.5 L 173.64 140 L 171.89 136.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 120 140 L 166.12 199.95" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 169.32 204.11 L 162.28 200.7 L 166.12 199.95 L 167.82 196.43 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 120 140 L 167.79 269.03" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 169.61 273.95 L 163.9 268.6 L 167.79 269.03 L 170.46 266.17 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<ellipse cx="60" cy="140" rx="60" 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: 118px; height: 1px; padding-top: 140px; 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;">
ReadfromFile
<br/>
读取
</div>
</div>
</div>
</foreignObject>
<text x="60" y="144" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
ReadfromFile...
</text>
</switch>
</g>
<rect x="170" y="0" width="110" height="50" rx="7.5" ry="7.5" 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: 108px; height: 1px; padding-top: 25px; margin-left: 171px;">
<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;">
number
<br/>
学号
</div>
</div>
</div>
</foreignObject>
<text x="225" y="29" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
number...
</text>
</switch>
</g>
<rect x="170" y="60" width="110" height="50" rx="7.5" ry="7.5" 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: 108px; height: 1px; padding-top: 85px; margin-left: 171px;">
<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;">
name
<br/>
姓名
</div>
</div>
</div>
</foreignObject>
<text x="225" y="89" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
name...
</text>
</switch>
</g>
<rect x="170" y="120" width="110" height="50" rx="7.5" ry="7.5" 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: 108px; height: 1px; padding-top: 145px; margin-left: 171px;">
<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;">
grade
<br/>
成绩
</div>
</div>
</div>
</foreignObject>
<text x="225" y="149" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
grade...
</text>
</switch>
</g>
<path d="M 280 205 L 338.63 205" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 343.88 205 L 336.88 208.5 L 338.63 205 L 336.88 201.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="170" y="180" width="110" height="50" rx="7.5" ry="7.5" 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: 108px; height: 1px; padding-top: 205px; margin-left: 171px;">
<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 number
<br/>
学生人数
</div>
</div>
</div>
</foreignObject>
<text x="225" y="209" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
student number...
</text>
</switch>
</g>
<path d="M 280 274.2 L 338.63 273.35" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 343.88 273.28 L 336.93 276.88 L 338.63 273.35 L 336.83 269.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="170" y="250" width="110" height="50" rx="7.5" ry="7.5" 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: 108px; height: 1px; padding-top: 275px; margin-left: 171px;">
<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;">
couse number
<br/>
课程门数
</div>
</div>
</div>
</foreignObject>
<text x="225" y="279" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
couse number...
</text>
</switch>
</g>
<rect x="345" y="180" width="100" height="50" rx="7.5" ry="7.5" 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: 98px; height: 1px; padding-top: 205px; margin-left: 346px;">
<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;">
保存n指向的存储单元
</div>
</div>
</div>
</foreignObject>
<text x="395" y="209" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
保存n指向的存储单元
</text>
</switch>
</g>
<rect x="345" y="245" width="105" height="55" rx="8.25" ry="8.25" 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: 103px; height: 1px; padding-top: 273px; margin-left: 346px;">
<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;">
保存m指向的存储单元
</div>
</div>
</div>
</foreignObject>
<text x="398" y="276" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
保存m指向的存储单元
</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: 15 KiB

Loading…
Cancel
Save