Compare commits

..

37 Commits

Author SHA1 Message Date
李培毅 9f89d2c09a Merge branch '计算每个学生各门课程的总分和平均分' of https://bdgit.educoder.net/p2i3t8vuh/text4
2 years ago
p2i3t8vuh c7efbf0796 Update README.md
2 years ago
p2i3t8vuh 431175143d Update README.md
2 years ago
p2i3t8vuh 25957d192f Update README.md
2 years ago
p2i3t8vuh 9c322d2f31 Merge pull request '流程图(2)' (#8) from ps2zk5fnt/text4:流程图(2) into master
2 years ago
p2i3t8vuh a89babd38f Merge pull request '流程图' (#7) from ps2zk5fnt/text4:流程图 into master
2 years ago
p2i3t8vuh abb2b86b41 Update README.md
2 years ago
王振宇 a5bc558918 1
2 years ago
李培毅 f454a56312 1
2 years ago
李培毅 66ec362e0e 1
2 years ago
李培毅 c3b6ec046a 1
2 years ago
李培毅 f107ab7a02 1
2 years ago
李培毅 fde034535c 1
2 years ago
李培毅 9be93bf151 1
2 years ago
李培毅 640432dabf 1
2 years ago
李培毅 8339cbf410 1
2 years ago
李培毅 ee998bf357 1
2 years ago
李培毅 f1d370e3d3 1
2 years ago
李培毅 0dc15346a5 1
2 years ago
李培毅 e794a118a2 1
2 years ago
p2i3t8vuh b4f33e0984 Merge pull request 'void' (#6) from ph6m83j2r/text4:void into 计算每个学生各门课程的总分和平均分
2 years ago
李培毅 ec3d6e02be 1
2 years ago
李培毅 2422e8cd31 1
2 years ago
p2i3t8vuh 68b7f765e8 Update README.md
2 years ago
李培毅 cfadf59ca7 1
2 years ago
李培毅 99a3f5bed2 1
2 years ago
李培毅 aa92df5cb3 学生成绩管理系统
2 years ago
wuhangkai 839d14ae24 df
2 years ago
p2i3t8vuh 59a91cab6e Merge pull request '1' (#5) from 阉割版程序 into master
2 years ago
p2i3t8vuh dcf309826e Merge pull request 'void' (#4) from ph6m83j2r/text4:void into 计算每个学生各门课程的总分和平均分
2 years ago
王振宇 b66dd3b676 1
2 years ago
wuhangkai 4ba7bfebc9 void
2 years ago
wuhangkai 63d3b5e77b void
2 years ago
p2i3t8vuh 3ee923b885 Merge pull request 'menu菜单函数' (#1) from ps2zk5fnt/text4:menu into master
2 years ago
p2i3t8vuh b6d22f1294 Merge pull request '计算总分和平均分' (#2) from 计算每个学生各门课程的总分和平均分 into master
2 years ago
Liwenfei 186e8cb2e2 menu
2 years ago
李培毅 ead1d7d25c 计算每个学生各门课程的总分和平均分
2 years ago

@ -0,0 +1,18 @@
{
"configurations": [
{
"name": "windows-gcc-x64",
"includePath": [
"${workspaceFolder}/**"
],
"compilerPath": "gcc",
"cStandard": "${default}",
"cppStandard": "${default}",
"intelliSenseMode": "windows-gcc-x64",
"compilerArgs": [
""
]
}
],
"version": 4
}

@ -0,0 +1,24 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "C/C++ Runner: Debug Session",
"type": "cppdbg",
"request": "launch",
"args": [],
"stopAtEntry": false,
"externalConsole": true,
"cwd": "c:/Users/lipei/Desktop/VSCode 2/text4",
"program": "c:/Users/lipei/Desktop/VSCode 2/text4/build/Debug/outDebug",
"MIMode": "gdb",
"miDebuggerPath": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}

@ -0,0 +1,38 @@
{
"C_Cpp_Runner.cCompilerPath": "gcc",
"C_Cpp_Runner.cppCompilerPath": "g++",
"C_Cpp_Runner.debuggerPath": "gdb",
"C_Cpp_Runner.cStandard": "",
"C_Cpp_Runner.cppStandard": "",
"C_Cpp_Runner.msvcBatchPath": "",
"C_Cpp_Runner.useMsvc": false,
"C_Cpp_Runner.warnings": [
"-Wall",
"-Wextra",
"-Wpedantic",
"-Wshadow",
"-Wformat=2",
"-Wconversion",
"-Wnull-dereference",
"-Wsign-conversion"
],
"C_Cpp_Runner.enableWarnings": true,
"C_Cpp_Runner.warningsAsError": false,
"C_Cpp_Runner.compilerArgs": [],
"C_Cpp_Runner.linkerArgs": [],
"C_Cpp_Runner.includePaths": [],
"C_Cpp_Runner.includeSearch": [
"*",
"**/*"
],
"C_Cpp_Runner.excludeSearch": [
"**/build",
"**/build/**",
"**/.*",
"**/.*/**",
"**/.vscode",
"**/.vscode/**"
],
"C_Cpp_Runner.useAddressSanitizer": false,
"C_Cpp_Runner.showCompilationTime": false
}

28
.vscode/tasks.json vendored

@ -0,0 +1,28 @@
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: gcc.exe 生成活动文件",
"command": "C:\\mingw64\\bin\\gcc.exe",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "调试器生成的任务。"
}
],
"version": "2.0.0"
}

@ -1,2 +1,110 @@
# text4
# 学生成绩管理系统
2023年4月23日
王振宇 李文菲 武杭凯 李培毅
## 项目简介
本学生成绩管理系统是为教师提供管理班级成绩的工具,该系统可以实现的对学生的成绩进行增,信息导入等基本功能,以及对学生成绩排序和分段的扩展功能,有利于对学生成绩管理。
下载地址https://bdgit.educoder.net/p2i3t8vuh/text4.git
项目开发过程中采用 Kanban (看板)进行任务管理和分工协作,并使用 Git 对程序代码和文档进行版本管理。任务分工情况如下:
|任务 |设计 |开发 |测试 |文档 |
|-----|-----|-----|-----|-----|
|驱动C1到C3及显示菜单并读取用户输入 ||||王振宇|
|显示菜单并获得用户键盘输入的选项||||李文菲|
|输入n个学生的m门课成绩 ||||武杭凯|
计算每个学生各门课程的总分和平均分 ||||李培毅|
每个成员的工作量(百分比):
|王振宇|李文菲|武杭凯|李培毅|
|------|------|------|------|
| 30 | 25 | 20 | 25 |
## 关于学生成绩管理系统
设计一个学生成绩管理系统,要求采用命令行菜单界面进行交互,具备读取、查询、修改、插入、删除和排序等基本功能,能够以表格和图表形式展示数据,采用 CSV 格式保存数据。
系统的功能性需求:
数据的读取、保存、打印、查询、修改、插入、删除、排序和图表展示。
系统的非功能性需求:
菜单驱动的命令行交互界面。
## 需求分析
分析系统的功能需求和界面需求,编制用户手册如下
#### C1启动程序
命令行中执行命令 ./app ,系统启动,显示提示信息,然后显示功能菜单,等待用户输入命令
~~~
库存管理系统启动
| 1 录入 | 2 计算 | 0 退出
请选择:
~~~
#### C2: 显示命令菜单
~~~
| 1 录入 | 2 计算 | 0 退出
请选择:
~~~
#### C3: 退出程序
选择菜单命令 0 ,退出程序
~~~
请选择0
程序退出
~~~
#### C4添加学生成绩
~~~
请选择1
输入学生序号1
输入学科序号4
输入成绩100
学生1成绩 已添加
| 1 录入 | 2 计算 | 0 退出
请选择: 1
输入学生序号1
输入学科序号4
学生成绩已存在
~~~
#### C5计算每个学生各门课程的总分和平均分
~~~
请选择2
输出序号1
输出各门课程的总分4100
输出各门课程的平均分4100
~~~
## 概要设计
系统主要分为用户界面和数据处理两大模块。
用户界面模块包括系统初始化init显示菜单display_menu选择菜单命令make_choice、确认confirm、退出quit等子模块。
数据处理模块包括数据输入(ReadScore),数据计算(AverSumofEveryStudent)等模块组成。
上述各模块通过主程序main进行调用系统模块图如下。
![](流程图.png)
各模块的主要功能如下:
#####main
系统主函数模块,显示菜单,根据用户选择的菜单命令,执行相关操作。
#####init
系统初始化。
#####display_menu
显示菜单命令。
####详细设计
![](text.drawio.svg)
#####add_data
Step 1: if 数据库满 then 提示数据库满并结束
Step 2: 输入零件编号
Step 3: if 学生成绩已存在 then 提示学生成绩已存在并结束
Step 4: 输入学生名和学科
Step 5: 添加新成绩到数据
Step 6: 提示添加成功
![](流程图2.png)

15
lpy.c

@ -0,0 +1,15 @@
void AverSumofEveryStudent( STU stu[], int n, int m)
{
int i, j;
for (i=0; i<n; i++)
{
stu[i].sum = 0;
for (j=0; j<m; j++)
{
stu[i].sum = stu[i].sum + stu[i].score[j];
}
stu[i].aver = m>0 ? stu[i].sum / m : -1;
printf("student %d: sum = %.0f, aver = %.0f\n",
i+1, stu[i].sum, stu[i].aver);
}
}

11
menu

@ -0,0 +1,11 @@
int Menu(void)
{
int itemSelected;
printf("Management for Students' scores\n");
printf("1.Input record\n");
printf("2.Calculate total and average score of every course\n");
printf("0.Exit\n");
printf("Please Input your choice:");
scanf("%d", &itemSelected); // 读入用户输入
return itemSelected;
}

@ -0,0 +1,234 @@
<svg host="65bd71144e" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="591px" height="1011px" viewBox="-0.5 -0.5 591 1011" content="&lt;mxfile&gt;&lt;diagram id=&quot;3N_EoTLsvniCUdFc0R0G&quot; name=&quot;第 1 页&quot;&gt;7Vrdc+I2EP9b+sDM3QMz/gYeE0h7fbj2Wq7Tx4ywBWgiSz5ZDuH++q4sGdtI4ZiGmGTmniSvVtJ+/Ha1EozCef70m0DF9jPPMB0FXvY0ChejIPA9L4BGUfaaEidTTdgIkhmmlrAk33Ez01ArkuGyxyg5p5IUfWLKGcOp7NGQEHzXZ1tz2t+1QBtsEZYpojb1X5LJraZOg0lL/4TJZtvs7CczPZKjhtloUm5RxncdUng3CueCc6l7+dMcU2W8xi563q/PjB4EE5jJcyZEesIjopXRzcgl942yOAPdzSfjDJrbrcwpfPnQ1eyK51kJDKnklUgNl9lFIrHBhis8aA+wwTzHUuyBRWCKJHnsr46M/zYHvlZF6Bgt3RoHlsY5IszWmlJAk1J2tyUSLwtUy74DQLsM8IiFxE+nTWArZyZMDBhMNITmc9dCC0JG07YdWE29l1sjuY7/Q9v/8UD+Dy2NCSPS0hoCs1DdQvAUl+WPcbBC6cNG8Iplf1aSEmWnS+Ej6ePDjx0ACRwASS4AEN+21yAIiW2E+MFAEIktlTNSFhTt73PMqvcElcP3EFBxhNYgUPEdp0kwFFaazXv5pKggoXhwqMzz94SWcDokWrwroWXiyCyzodAysZT+Vr2v02c6JEj82RkgGbBSm/ZtMZvZtpg6TBFfIl7sU2mQeHHV6vraMESxfo7/h1J6OpTS9pGS1k1CQZTbskCsZ4HkW6Wui7crLjIsximnXIzCm3oF8WE87tI/1ibx2nTRZReb1YcgBpyBiF63Y2atOZPjNcoJ3esJc85KTkHXmhEkQbmKOSPPHAxKsICRP/DueFBPyTnjpQ7YwwZlfd1Xy/tR8VQPJIdJyUa1f2OULVMucGMTMKk2ix63MCK2PF9VZ+TRC+SIqJ8jIle+TF7pOhfY58sw8RI54iUZKF5C/+0oHXoDKe14ufmZJHpJ4gaieFnlfH0Hnf1SVply5htMGEE/YSSO95/A9f4zu0DCiOyzZpjYSezY0cXxELHjevUCWuh7Gj+nQ+goGDyN0qZ5Lgw+YfqIJUmRG8WBQbEZ0JuqEcZFjmhnDOKVIGgp2SBZCfUOfpIvRcVzLDuDJjUYeVp5j2IpIROoiCNsY8/kotgiZpYMNA3AL8cIJGKanILvIajbMcLq6KsHvUbVekQKWGwN6zc7MRPnAP/6ob6zzQ6SVF+ww1qgy+qBwHJqzVIK/oDHJoB6fKeSmt/ksrbzsSNphqHkACRyNpZbkj6w+mampqsXRNLY55i348uTfB1xenxrypE8No55kGrY6xtf4P1C8oILiZh0ZkR1QMw/L+7/+uf3r88mwm4ctN0rpse4nx4nE0c9Fb1SPRVeq56aOkqLoeqpZvOO0gIK7vsMSWRp/5ZeKoJZ1INK5Liev9pTRXil+3lTLfSgMtT9PLQf8RC4sFRlF1ZlV6nLrneAnaOnnSSK7SrMlWYugp0zfoZrjLVD+4KTOsOXD1imSjaVo3UtsUigW49jAXUvk6UxUU2rRYxvR/ECKGtC6VyfOYsMr1FVnwdQT5DvaFXvqpYVXILr2u8CCwL6qcN9oU/5Ly3ltmSo+Mq/aPkudgDM+q6JfVeBbHsmuER9/OK7JWbZjfrLQTv4P+PcUTG/OM7NVO2wzovvkcGPLanlMrNaY/5woeT4yqKVsRaqvXLQ57wQOuOfDD9D6OCIxJHdLhNC8Nn+fUU7sv0TUHj3Hw==&lt;/diagram&gt;&lt;/mxfile&gt;">
<defs/>
<g>
<path d="M 100 80 L 100 113.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 100 118.88 L 96.5 111.88 L 100 113.63 L 103.5 111.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<ellipse cx="100" cy="40" rx="50" 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: 98px; height: 1px; padding-top: 40px; margin-left: 51px;">
<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="100" y="44" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
main
</text>
</switch>
</g>
<path d="M 100 180 L 100 223.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 100 228.88 L 96.5 221.88 L 100 223.63 L 103.5 221.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="40" y="120" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 52 120 L 52 180 M 148 120 L 148 180" 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: 150px; margin-left: 53px;">
<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;">
init
</div>
</div>
</div>
</foreignObject>
<text x="100" y="154" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
init
</text>
</switch>
</g>
<path d="M 100 290 L 100 343.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 100 348.88 L 96.5 341.88 L 100 343.63 L 103.5 341.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="40" y="230" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 52 230 L 52 290 M 148 230 L 148 290" 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: 260px; margin-left: 53px;">
<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;">
display_menu
</div>
</div>
</div>
</foreignObject>
<text x="100" y="264" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
display_menu
</text>
</switch>
</g>
<path d="M 100 410 L 100 443.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 100 448.88 L 96.5 441.88 L 100 443.63 L 103.5 441.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="40" y="350" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 52 350 L 52 410 M 148 350 L 148 410" 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: 380px; margin-left: 53px;">
<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;">
input n,m
</div>
</div>
</div>
</foreignObject>
<text x="100" y="384" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
input n,m
</text>
</switch>
</g>
<path d="M 100 910 L 100 953.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 100 958.88 L 96.5 951.88 L 100 953.63 L 103.5 951.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="40" y="850" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 52 850 L 52 910 M 148 850 L 148 910" 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: 880px; margin-left: 53px;">
<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;">
quit
</div>
</div>
</div>
</foreignObject>
<text x="100" y="884" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
quit
</text>
</switch>
</g>
<ellipse cx="100" cy="985" rx="40" ry="25" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 100 530 L 100 593.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 100 598.88 L 96.5 591.88 L 100 593.63 L 103.5 591.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 180 490 L 267.63 490" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 272.88 490 L 265.88 493.5 L 267.63 490 L 265.88 486.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 100 450 L 180 490 L 100 530 L 20 490 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: 158px; height: 1px; padding-top: 490px; 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;">
c=
<span style="border-color: var(--border-color); background-color: rgb(255, 255, 255); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px;">
ReadScore
</span>
</div>
</div>
</div>
</foreignObject>
<text x="100" y="494" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
c=ReadScore
</text>
</switch>
</g>
<path d="M 100 690 L 100 733.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 100 738.88 L 96.5 731.88 L 100 733.63 L 103.5 731.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 200 645 L 253.63 645" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 258.88 645 L 251.88 648.5 L 253.63 645 L 251.88 641.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 100 600 L 200 645 L 100 690 L 0 645 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: 198px; height: 1px; padding-top: 645px; 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;">
c=
<span style="border-color: var(--border-color); background-color: rgb(255, 255, 255); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px;">
AverSumofEveryStudent
</span>
</div>
</div>
</div>
</foreignObject>
<text x="100" y="649" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
c=AverSumofEveryStudent
</text>
</switch>
</g>
<path d="M 100 820 L 100 843.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 100 848.88 L 96.5 841.88 L 100 843.63 L 103.5 841.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 100 740 L 170 780 L 100 820 L 30 780 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: 780px; margin-left: 31px;">
<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;">
<br/>
<span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(251, 251, 251); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;">
c=CMD_QUIT
</span>
<div>
<br/>
</div>
<div>
<br/>
</div>
</div>
</div>
</div>
</foreignObject>
<text x="100" y="784" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
c=CMD_QUIT...
</text>
</switch>
</g>
<path d="M 394 490 L 573.63 490" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 578.88 490 L 571.88 493.5 L 573.63 490 L 571.88 486.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="274" y="460" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 286 460 L 286 520 M 382 460 L 382 520" 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: 490px; margin-left: 287px;">
<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;">
read_data
</div>
</div>
</div>
</foreignObject>
<text x="334" y="494" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
read_data
</text>
</switch>
</g>
<path d="M 500 645 L 573.63 645" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 578.88 645 L 571.88 648.5 L 573.63 645 L 571.88 641.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="260" y="615" width="240" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 284 615 L 284 675 M 476 615 L 476 675" 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: 190px; height: 1px; padding-top: 645px; margin-left: 285px;">
<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;">
aversumofeverystudent_data
</div>
</div>
</div>
</foreignObject>
<text x="380" y="649" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
aversumofeverystudent_data
</text>
</switch>
</g>
<ellipse cx="580" cy="490" rx="3" ry="3" fill="rgb(0, 0, 0)" stroke="none" pointer-events="all"/>
<rect x="570" y="480" width="20" height="20" fill="none" stroke="none" pointer-events="all"/>
<path d="M 580 490 L 580 645" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<ellipse cx="580" cy="645" rx="3" ry="3" fill="rgb(0, 0, 0)" stroke="none" pointer-events="all"/>
<rect x="570" y="635" width="20" height="20" fill="none" stroke="none" 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: 22 KiB

14
void

@ -0,0 +1,14 @@
// 函数功能输入n个学生的m门课成绩
void ReadScore(STU stu[], int n, int m)
{
int i, j;
printf("Input student's ID, name and score:\n");
/* ---------- begain ---------- */
for(i=0;i<n;i++)
{scanf("%ld%s",&stu[i].num,stu[i].name);
for (j=0; j<m; j++)
scanf("%f",&stu[i].score[j]);
}
/* ----------- end ----------- */
}

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

@ -1,149 +0,0 @@
<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>

Before

Width:  |  Height:  |  Size: 12 KiB

@ -0,0 +1,83 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_LEN 10 // 字符串最大长度
#define STU_NUM 30 // 最多的学生人数
#define COURSE_NUM 6 // 最多的考试科目数
typedef struct student
{
long num; // 每个学生的学号
char name[MAX_LEN]; // 每个学生的姓名
float score[COURSE_NUM]; // 每个学生COURSE_NUM门功课的成绩
float sum; // 每个学生的总成绩
float aver; // 每个学生的平均成绩
}STU;
int Menu(void);
void ReadScore(STU stu[], int n, int m);
void AverSumofEveryStudent(STU stu[], int n, int m);
int main(void)
{
char ch;
int n = 0, m = 0;
STU stu[STU_NUM];
printf("Input student number(n<%d):", STU_NUM);
scanf("%d", &n);
printf("Input course number(m<=%d):",COURSE_NUM);
scanf("%d", &m);
while (1)
{
ch = Menu(); // 显示菜单,并读取用户输入
switch (ch)
{
case 1:ReadScore(stu, n, m);
break;
case 2: AverSumofEveryStudent(stu, n, m);
break;
case 0: printf("End of program!");
exit(0);
default:printf("Input error!");
}
}
return 0;}
// 函数功能:显示菜单并获得用户键盘输入的选项
int Menu(void)
{
int itemSelected;
printf("Management for Students' scores\n");
printf("1.Input record\n");
printf("2.Calculate total and average score of every course\n");
printf("0.Exit\n");
printf("Please Input your choice:");
scanf("%d", &itemSelected); // 读入用户输入
return itemSelected;
}
// 函数功能输入n个学生的m门课成绩
void ReadScore(STU stu[], int n, int m)
{
int i, j;
printf("Input student's ID, name and score:\n");
/* ---------- begain ---------- */
for(i=0;i<n;i++)
{scanf("%ld%s",&stu[i].num,stu[i].name);
for (j=0; j<m; j++)
scanf("%f",&stu[i].score[j]);
}
/* ----------- end ----------- */
}
// 函数功能:计算每个学生各门课程的总分和平均分
void AverSumofEveryStudent(STU stu[], int n, int m)
{
int i, j;
for (i=0; i<n; i++)
{
stu[i].sum = 0;
for (j=0; j<m; j++)
{
stu[i].sum = stu[i].sum + stu[i].score[j];
}
stu[i].aver = m>0 ? stu[i].sum / m : -1;
printf("student %d: sum = %.0f, aver = %.0f\n",
i+1, stu[i].sum, stu[i].aver);
}
}

@ -1,184 +0,0 @@
<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>

Before

Width:  |  Height:  |  Size: 15 KiB

@ -1,175 +0,0 @@
<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>

Before

Width:  |  Height:  |  Size: 15 KiB

Loading…
Cancel
Save