101 lines
11 KiB
XML
101 lines
11 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="1381" viewBox="0 0 1200 1381" 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="1381" 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 V1267.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
||
<line x1="25" y1="305.0" x2="55" y2="305.0" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="55" y="263.0" width="185" height="84" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
||
<text x="147.5" y="289.6" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">关系表达式与逻</text>
|
||
<text x="147.5" y="320.4" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">辑表达式</text>
|
||
<path d="M240 305.0 C265 305.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">例3-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 305.0 C265 305.0 265 361.0 290 361.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="290" y="332.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
|
||
<text x="450.0" y="361.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例3-2:数字的性质</text>
|
||
<path d="M610 361.0 C645 361.0 645 329.0 680 329.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="680" y="302.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
||
<text x="912.5" y="329.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">逻辑表达式</text>
|
||
<path d="M610 361.0 C645 361.0 645 393.0 680 393.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="680" y="366.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
||
<text x="912.5" y="393.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">与、或、异或、非</text>
|
||
<path d="M240 305.0 C265 305.0 265 475.0 290 475.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="290" y="446.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
|
||
<text x="450.0" y="475.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例3-3:判断闰年</text>
|
||
<path d="M610 475.0 C645 475.0 645 475.0 680 475.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="680" y="448.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
||
<text x="912.5" y="475.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="650.0" width="185" height="70" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
||
<text x="147.5" y="685.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">分支语句</text>
|
||
<path d="M240 685.0 C265 685.0 265 595.0 290 595.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="290" y="566.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
|
||
<text x="450.0" y="595.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例3-4:Apples</text>
|
||
<path d="M610 595.0 C645 595.0 645 595.0 680 595.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="680" y="568.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
||
<text x="912.5" y="595.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">if语句</text>
|
||
<path d="M240 685.0 C265 685.0 265 685.0 290 685.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="290" y="656.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
|
||
<text x="450.0" y="685.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例3-5:洛谷团队系统</text>
|
||
<path d="M610 685.0 C645 685.0 645 685.0 680 685.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="680" y="658.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
||
<text x="912.5" y="685.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">if-else语句</text>
|
||
<path d="M240 685.0 C265 685.0 265 775.0 290 775.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="290" y="746.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
|
||
<text x="450.0" y="775.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例3-6:小洛机器人</text>
|
||
<path d="M610 775.0 C645 775.0 645 775.0 680 775.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="680" y="748.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
||
<text x="912.5" y="775.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">switch-case语句</text>
|
||
<line x1="25" y1="1009.0" x2="55" y2="1009.0" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="55" y="974.0" width="185" height="70" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
||
<text x="147.5" y="1009.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">分支嵌套</text>
|
||
<path d="M240 1009.0 C265 1009.0 265 895.0 290 895.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="290" y="866.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
|
||
<text x="450.0" y="895.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例3-7:肥胖问题</text>
|
||
<path d="M610 895.0 C645 895.0 645 895.0 680 895.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="680" y="868.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
||
<text x="912.5" y="895.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">if语句嵌套</text>
|
||
<path d="M240 1009.0 C265 1009.0 265 1009.0 290 1009.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="290" y="980.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
|
||
<text x="450.0" y="1009.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例3-8:三个数排序</text>
|
||
<path d="M610 1009.0 C645 1009.0 645 977.0 680 977.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="680" y="950.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
||
<text x="912.5" y="977.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">复杂的分支嵌套</text>
|
||
<path d="M610 1009.0 C645 1009.0 645 1041.0 680 1041.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="680" y="1014.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
||
<text x="912.5" y="1041.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">明确层次关系</text>
|
||
<path d="M240 1009.0 C265 1009.0 265 1123.0 290 1123.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="290" y="1094.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
|
||
<text x="450.0" y="1123.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例3-9:月份天数</text>
|
||
<path d="M610 1123.0 C645 1123.0 645 1123.0 680 1123.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="680" y="1096.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
||
<text x="912.5" y="1123.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">switch-case语句和if-else语句的嵌套</text>
|
||
<line x1="25" y1="1267.0" x2="55" y2="1267.0" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="55" y="1225.0" width="185" height="84" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
||
<text x="147.5" y="1251.6" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">分支程序设计案</text>
|
||
<text x="147.5" y="1282.4" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例</text>
|
||
<path d="M240 1267.0 C265 1267.0 265 1267.0 290 1267.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="290" y="1209.5" width="320" height="115" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
|
||
<text x="450.0" y="1236.2" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例3-10:不高兴的津津</text>
|
||
<text x="450.0" y="1267.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例3-11:买铅笔</text>
|
||
<text x="450.0" y="1297.8" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例3-12:ISBN号码</text>
|
||
<path d="M610 1267.0 C645 1267.0 645 1235.0 680 1235.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="680" y="1208.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
||
<text x="912.5" y="1235.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">问号表达式</text>
|
||
<path d="M610 1267.0 C645 1267.0 645 1299.0 680 1299.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
||
<rect x="680" y="1272.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
||
<text x="912.5" y="1299.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">解决最简单的比赛试题</text>
|
||
</g></svg> |