bo yu 2 years ago
commit 306f1d0194

@ -343,6 +343,18 @@ Step 2.12: if c == CMD_QUIT then 退出
![](pictures/main_chart.drawio.svg) ![](pictures/main_chart.drawio.svg)
#### read_data
Step 1: 输入文件名
Step 2: 打开文件
Step 3: if 文件为空 then 结束
Step 4: else 读取文件
Step 5: 提示读取并记录
![](pictures/read.drawio.svg)
#### save_data #### save_data
Step 1: 输入文件名 Step 1: 输入文件名
@ -361,15 +373,6 @@ Step 3: else 学号存在 then 输出学号、姓名、成绩
![](pictures/query_data.drawio.svg) ![](pictures/query_data.drawio.svg)
#### read_data
Step 1: 输入文件名
Step 2: 打开文件
Step 3: if 文件为空 then 结束
Step 4: else 读取文件
Step 5: 提示读取并记录
![](pictures/read.drawio.svg)
#### make_chart #### make_chart

@ -1,4 +1,4 @@
<svg host="65bd71144e" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="341px" height="701px" viewBox="-0.5 -0.5 341 701" content="&lt;mxfile&gt;&lt;diagram id=&quot;upyrMhvOQVLzjFjaz9En&quot; name=&quot;Page-1&quot;&gt;3VlLc9owEP41OjZjW5YfR5uY9tDOdCaHtqeOghXsqUFUmAD99V1ZMljGEEPs9MFkgrRavXY/fbsSCE8Wu/eCrrJPPGUFcqx0h/A9chwvcOG/FOyVgHhYCeYiT5XIPgoe8l9MCy0t3eQpWxuKJedFma9M4Ywvl2xWGjIqBN+aak+8MGdd0Tk7ETzMaHEq/ZKnZaakAbGO8g8sn2f1zLalWxa0VtaCdUZTvm2IcILwRHBeqtJiN2GFtF1tF9Vveqb1sDDBlmWfDliv45kWG705vbByX++WpbB5XV3yJXzFWbkooGZD8XRGvYg134iZHkIPWlIxZ1rLCZVMjt7op5f5nvEFK8UeFAQraJk/m6an2oPzg95xk1DQ++zes9OxZa+AZcVPHPYgYVNwUbV4PzfSE7BJbFWfpsiby+81fWbfU1rSehCYXo2j2k/NWRSAU2nFbZaX7GFFKytt4aSYln3Ki2JyWAqeVh85Yyn4D9Zo0Uu74ItnJkq2u2jmnQkIfTIDXd0eYW57WpY1IO5br/cL9t4Ei3bNGA0wYvKnwFivZiA0osRDQYhCjBKC4gkC/4EkBKGPEhfFMYq9SidAoSV1ggiFU5RMpTIUemJYZHzxuFmPgWHBN8uUpbq/0qtJ9qKPb8Y4DnuCPBwA5Hb4WpCfN5102VW00DwCdjD0EdBdP/O8wnHtGosY1idBy6rqrOpeLcMeltHP1v6VpmW7vPzaKH+DsnVHdO1e7sCqK3tdGdAdo5veb5ne7Wf6joHsO2wTPwhdH0M2Z3utcf07KZa+djxcu6GeRaFuCAc77riHSWeetnOLN42YE3QkQPiPxZzgpZhztF8dYGTDu3VljwgUbGe1U2HnEICuDVQQeyBEQaCCcOWj6L4jUPWNRkbI+AeyKs/uiDhkpLTq6jMB2xT7rxX1hcSrBZoLIW3XgiMdVrV9s/aZiRwWykQvkhzsmNW3KiOujUOukRB031BYSTpbn+debJsQcHHQcqIa8WYqJH8n89UuGT+tMO3rW62jcybqXO3HM/MM5seuC/kr7wPTKtcHjgVejfrdEEilbKMkQLGLItKXitcZXckioIIWBSv4XNAFKK4ahGC0NZjiZebesfoxaIi7xQC83iZ2YnUQuzsWseMe2c94jw2DG7NlS/8tg6TbdQ2/4e2hRXMv02N4GrGw+0Z5oNN1F30N1wBZJJpZILcD1uhkFiCj4P7/IJQBUO+aqLe7HiO6GMQbAPW46yIw/Isbdt8iLeu96Y5L4xUxMTyx0HXXjzPJ1IV07AwqB8AeMbHndGHPGQt7ZPhEJ5J/ypfahRNZlk6NtHfhnhkGkqmiBMXVC2gMElJRFuiHl7jrSspK+WyzqJzzEigeFYI+Pv7Vz6bujblO+4GvB1qgevwNTGXRxx8ScfIb&lt;/diagram&gt;&lt;/mxfile&gt;"> <svg host="65bd71144e" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="341px" height="751px" viewBox="-0.5 -0.5 341 751" content="&lt;mxfile&gt;&lt;diagram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gfV2m/WmrnbURRBnjAuS3SfADenB/2BuP1M6Xig2zwA0AgykDYOlg8GaCgYyfs4PxF+FpYRwJtoC1ECiC0Wc7wmnDSIUlne3ECSk9F7Q9y+58Y3em7DFbl2Cc40UrxWDfnv9qS98HaclQ9O+N0aqGpL2N0kgXktCb5HFeZ4u9HdA48l2nNY90POtizdB0WmE2Eq2gSNU0xHV/d4cq6cqe2oubd67mkOVtzRzaHVH6sPVwENXOSjZB6+cttGpAnEH5qFXTrsThUiXL+PdKm1N6L+VRUPxexQuuItLt1Ic/CrAaL9TcLsAn8EFrBcfG2pboZAP37Bap4a5mvFu0HWJ5tbQMbmzt17qG+iBBDK9Nh62ij23EghbVyaaiEBqndEIpHsXdXfuIY3MY17OOp+bYWxNhnloJDu9PVaJ4d4Mc/rFUxFkwgyju11+Alfuw1y9ZW0FH/w/5hcxh279y3KlXv88j6N/AA==&lt;/diagram&gt;&lt;/mxfile&gt;">
<defs/> <defs/>
<g> <g>
<path d="M 80 70 L 80 103.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/> <path d="M 80 70 L 80 103.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
@ -43,17 +43,13 @@
</text> </text>
</switch> </switch>
</g> </g>
<path d="M 75 500 L 75 523.63" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 75 528.88 L 71.5 521.88 L 75 523.63 L 78.5 521.88 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 145 460 L 144.16 461.67" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/> <path d="M 145 460 L 144.16 461.67" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 141.82 466.37 L 141.82 458.54 L 144.16 461.67 L 148.08 461.67 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/> <path d="M 141.82 466.37 L 141.82 458.54 L 144.16 461.67 L 148.08 461.67 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 75 600 L 75 623.63" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/> <rect x="0" y="540" width="150" height="70" rx="10.5" ry="10.5" fill="#ffffff" stroke="#000000" pointer-events="all"/>
<path d="M 75 628.88 L 71.5 621.88 L 75 623.63 L 78.5 621.88 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/>
<rect x="0" y="530" width="150" height="70" rx="10.5" ry="10.5" fill="#ffffff" stroke="#000000" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)"> <g transform="translate(-0.5 -0.5)">
<switch> <switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"> <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: 148px; height: 1px; padding-top: 565px; margin-left: 1px;"> <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 148px; height: 1px; padding-top: 575px; margin-left: 1px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"> <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 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;">
<font color="#000000" style="font-size: 12px;"> <font color="#000000" style="font-size: 12px;">
@ -63,20 +59,16 @@
</div> </div>
</div> </div>
</foreignObject> </foreignObject>
<text x="75" y="569" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle"> <text x="75" y="579" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
关闭文件 关闭文件
</text> </text>
</switch> </switch>
</g> </g>
<path d="M 273.61 420 L 278.97 367.95 Q 280 358 270 357.97 L 159.33 357.63" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/> <path d="M 260 590 L 210 590 Q 200 590 202.75 580.38 L 217.25 529.62 Q 220 520 230 520 L 330 520 Q 340 520 337.25 529.62 L 322.75 580.38 Q 320 590 310 590 Z" fill="#ffffff" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 154.08 357.61 L 161.09 354.13 L 159.33 357.63 L 161.07 361.13 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 270 490 L 270 610 Q 270 620 260 620 L 76.37 620" fill="none" stroke="#000000" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 71.12 620 L 78.12 616.5 L 76.37 620 L 78.12 623.5 Z" fill="#000000" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 260 490 L 210 490 Q 200 490 202.75 480.38 L 217.25 429.62 Q 220 420 230 420 L 330 420 Q 340 420 337.25 429.62 L 322.75 480.38 Q 320 490 310 490 Z" fill="#ffffff" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)"> <g transform="translate(-0.5 -0.5)">
<switch> <switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"> <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: 455px; margin-left: 201px;"> <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: 555px; margin-left: 201px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"> <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 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;">
<font color="#000000"> <font color="#000000">
@ -86,12 +78,12 @@
</div> </div>
</div> </div>
</foreignObject> </foreignObject>
<text x="270" y="459" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle"> <text x="270" y="559" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
提示打开文件失败 提示打开文件失败
</text> </text>
</switch> </switch>
</g> </g>
<ellipse cx="75" cy="665" rx="75" ry="35" fill="#ffffff" stroke="#000000" pointer-events="all"/> <ellipse cx="75" cy="715" rx="75" ry="35" fill="#ffffff" stroke="#000000" pointer-events="all"/>
<path d="M 80 170 L 80 203.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/> <path d="M 80 170 L 80 203.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 80 208.88 L 76.5 201.88 L 80 203.63 L 83.5 201.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/> <path d="M 80 208.88 L 76.5 201.88 L 80 203.63 L 83.5 201.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 10 170 L 30 110 L 150 110 L 130 170 Z" fill="#ffffff" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/> <path d="M 10 170 L 30 110 L 150 110 L 130 170 Z" fill="#ffffff" stroke="#000000" stroke-miterlimit="10" pointer-events="all"/>
@ -113,8 +105,6 @@
</text> </text>
</switch> </switch>
</g> </g>
<path d="M 80 270 L 80 303.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 80 308.88 L 76.5 301.88 L 80 303.63 L 83.5 301.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="20" y="210" width="120" height="60" rx="9" ry="9" fill="#ffffff" stroke="#000000" pointer-events="all"/> <rect x="20" y="210" width="120" height="60" rx="9" ry="9" fill="#ffffff" stroke="#000000" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)"> <g transform="translate(-0.5 -0.5)">
<switch> <switch>
@ -151,6 +141,16 @@
</text> </text>
</switch> </switch>
</g> </g>
<path d="M 75.24 491.36 L 75.03 533.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 75.01 538.88 L 71.54 531.86 L 75.03 533.63 L 78.54 531.9 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 270 590 L 270 640 Q 270 650 260 650 L 81.37 650" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 76.12 650 L 83.12 646.5 L 81.37 650 L 83.12 653.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 150 355 L 260 355 Q 270 355 270 365 L 270 513.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 270 518.88 L 266.5 511.88 L 270 513.63 L 273.5 511.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 80 270 L 80 303.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 80 308.88 L 76.5 301.88 L 80 303.63 L 83.5 301.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 75 610 L 75 673.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 75 678.88 L 71.5 671.88 L 75 673.63 L 78.5 671.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
</g> </g>
<switch> <switch>
<g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/> <g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/>

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Loading…
Cancel
Save