Files

106 lines
12 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="1477" viewBox="0 0 1200 1477" role="img" aria-labelledby="title desc">
<title id="title">函数与结构体:本章知识结构</title>
<desc id="desc">根据教材扫描图人工重绘的矢量教学示意图。文字与线条可无损缩放。</desc>
<defs><marker id="arrow" markerWidth="9" markerHeight="9" refX="8" refY="4.5" orient="auto" markerUnits="userSpaceOnUse"><path d="M0 0 L9 4.5 L0 9 Z" fill="#417b63"/></marker></defs>
<rect width="1200" height="1477" fill="white"/>
<g font-family="Microsoft YaHei, Noto Sans CJK SC, Arial, sans-serif" fill="#193b32" stroke-linecap="round" stroke-linejoin="round">
<rect x="330" y="15" width="540" height="60" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="600.0" y="45.0" text-anchor="middle" dominant-baseline="central" font-size="27" fill="#193b32">函数与结构体</text>
<path d="M330 45 H25 V1318.0" fill="none" stroke="#417b63" stroke-width="2"/>
<line x1="25" y1="281.0" x2="55" y2="281.0" stroke="#417b63" stroke-width="2"/>
<rect x="55" y="246.0" width="185" height="70" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="147.5" y="281.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">定义子程序</text>
<path d="M240 281.0 C265 281.0 265 191.0 290 191.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="290" y="162.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="450.0" y="191.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例7-1:距离函数</text>
<path d="M610 191.0 C645 191.0 645 127.0 680 127.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="100.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="127.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">定义函数</text>
<path d="M610 191.0 C645 191.0 645 191.0 680 191.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="164.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="191.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">函数的调用</text>
<path d="M610 191.0 C645 191.0 645 255.0 680 255.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="228.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="255.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">形式参数与实际参数</text>
<path d="M240 281.0 C265 281.0 265 337.0 290 337.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="290" y="308.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="450.0" y="337.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例7-2:质数筛</text>
<path d="M610 337.0 C645 337.0 645 337.0 680 337.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="310.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="337.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">全局变量</text>
<path d="M240 281.0 C265 281.0 265 427.0 290 427.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="290" y="398.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="450.0" y="427.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例7-3:闰年展示</text>
<path d="M610 427.0 C645 427.0 645 427.0 680 427.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="400.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="427.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">分解大程序的功能</text>
<line x1="25" y1="685.0" x2="55" y2="685.0" stroke="#417b63" stroke-width="2"/>
<rect x="55" y="643.0" width="185" height="84" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="147.5" y="669.6" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">变量作用域与参</text>
<text x="147.5" y="700.4" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">数传递</text>
<path d="M240 685.0 C265 685.0 265 571.0 290 571.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="290" y="542.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="450.0" y="571.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例7-4:歌唱比赛</text>
<path d="M610 571.0 C645 571.0 645 539.0 680 539.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="512.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="539.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">函数传递数组名</text>
<path d="M610 571.0 C645 571.0 645 603.0 680 603.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="576.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="603.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">局部变量</text>
<path d="M240 685.0 C265 685.0 265 709.0 290 709.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="290" y="680.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="450.0" y="709.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例7-5:交换两个变量的值</text>
<path d="M610 709.0 C645 709.0 645 677.0 680 677.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="650.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="677.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">引用传参</text>
<path d="M610 709.0 C645 709.0 645 741.0 680 741.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="714.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="741.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">取地址</text>
<path d="M240 685.0 C265 685.0 265 823.0 290 823.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="290" y="794.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="450.0" y="823.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例7-6:自动修正加强版</text>
<path d="M610 823.0 C645 823.0 645 823.0 680 823.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="796.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="823.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">string作为参数与返回值</text>
<line x1="25" y1="1036.0" x2="55" y2="1036.0" stroke="#417b63" stroke-width="2"/>
<rect x="55" y="1001.0" width="185" height="70" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="147.5" y="1036.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">递归函数</text>
<path d="M240 1036.0 C265 1036.0 265 967.0 290 967.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="290" y="938.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="450.0" y="967.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例7-7:求阶乘</text>
<path d="M610 967.0 C645 967.0 645 935.0 680 935.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="908.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="935.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">定义递归函数</text>
<path d="M610 967.0 C645 967.0 645 999.0 680 999.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="972.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="999.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">递归函数的执行步骤</text>
<path d="M240 1036.0 C265 1036.0 265 1105.0 290 1105.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="290" y="1076.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="450.0" y="1105.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例7-8:赦免战俘</text>
<path d="M610 1105.0 C645 1105.0 645 1073.0 680 1073.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="1046.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="1073.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">比较复杂的递归函数</text>
<path d="M610 1105.0 C645 1105.0 645 1137.0 680 1137.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="1110.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="1137.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">&lt;&lt;和&gt;&gt;运算符</text>
<line x1="25" y1="1318.0" x2="55" y2="1318.0" stroke="#417b63" stroke-width="2"/>
<rect x="55" y="1283.0" width="185" height="70" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="147.5" y="1318.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">结构体的使用</text>
<path d="M240 1318.0 C265 1318.0 265 1273.0 290 1273.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="290" y="1215.5" width="320" height="115" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="450.0" y="1242.2" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例7-9:最厉害的学生</text>
<text x="450.0" y="1273.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例7-10:旗鼓相当的对手加强</text>
<text x="450.0" y="1303.8" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">版</text>
<path d="M610 1273.0 C645 1273.0 645 1241.0 680 1241.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="1214.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="1241.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">结构体的定义</text>
<path d="M610 1273.0 C645 1273.0 645 1305.0 680 1305.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="1278.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="1305.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">结构体元素的访问</text>
<path d="M240 1318.0 C265 1318.0 265 1387.0 290 1387.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="290" y="1358.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="450.0" y="1387.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例7-11:评等级</text>
<path d="M610 1387.0 C645 1387.0 645 1387.0 680 1387.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="1360.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="1387.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">构造函数</text>
</g></svg>