ZY-ReadfromFile

ZY-ReadfromFile
zhangyu 2 years ago
parent 3f5fdb39a4
commit be7204dee6

@ -462,7 +462,7 @@ Step 2:利用循环for输入学生学号和姓名
Step 3:利用二次循环输入学生成绩
Step 4:输入学生总成绩和平均分
![从文件中读取学生学号,姓名及成绩等信息写入结构体](ReadfromFile.svg)
![从文件中读取学生学号,姓名及成绩等信息写入结构体](ReadfromFile.svg)
#### exit
## 代码实现

@ -77,9 +77,9 @@
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 434,1829 L 372,1953 L 1240,1953 L 1302,1829 Z"/>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 496,1829 L 434,1953 L 1178,1953 L 1240,1829 Z"/>
<text x="837" y="1847" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="837" dy="62" unicode-bidi="embed">Input fp, &quot;%10ld&quot;, &amp;stu[i].num</tspan>
<tspan x="837" dy="62" unicode-bidi="embed">Input fp, &quot;%d\t%d&quot;, n, m</tspan>
</text>
</g>
<g>

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Loading…
Cancel
Save