100 lines
11 KiB
XML
100 lines
11 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="1491" viewBox="0 0 1200 1491" 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="1491" 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 V1280.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
|
<line x1="25" y1="292.0" x2="55" y2="292.0" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="55" y="250.0" width="185" height="84" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
|
<text x="147.5" y="276.6" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">程序设计的目标</text>
|
|
<text x="147.5" y="307.4" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">和流程</text>
|
|
<path d="M240 292.0 C265 292.0 265 159.0 290 159.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="290" y="130.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
|
|
<text x="450.0" y="159.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例1-1:你好洛谷</text>
|
|
<path d="M610 159.0 C645 159.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">C++程序的基本结构</text>
|
|
<path d="M610 159.0 C645 159.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="M240 292.0 C265 292.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">例1-2:解决算法问题的步骤</text>
|
|
<path d="M610 361.0 C645 361.0 645 265.0 680 265.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="680" y="238.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
|
<text x="912.5" y="265.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">分析问题,理解题意</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="M610 361.0 C645 361.0 645 457.0 680 457.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="680" y="430.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
|
<text x="912.5" y="457.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">调试、编译运行与测试</text>
|
|
<line x1="25" y1="804.0" x2="55" y2="804.0" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="55" y="769.0" width="185" height="70" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
|
<text x="147.5" y="804.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">简单数学运算</text>
|
|
<path d="M240 804.0 C265 804.0 265 593.0 290 593.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="290" y="564.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
|
|
<text x="450.0" y="593.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例1-3:分苹果</text>
|
|
<path d="M610 593.0 C645 593.0 645 561.0 680 561.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="680" y="534.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
|
<text x="912.5" y="561.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">整数的加减乘除运算和优先级</text>
|
|
<path d="M610 593.0 C645 593.0 645 625.0 680 625.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="680" y="598.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
|
<text x="912.5" y="625.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">使用cout输出运算结果</text>
|
|
<path d="M240 804.0 C265 804.0 265 731.0 290 731.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="290" y="702.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
|
|
<text x="450.0" y="731.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例1-4:均分肥宅水</text>
|
|
<path d="M610 731.0 C645 731.0 645 699.0 680 699.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="680" y="672.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
|
<text x="912.5" y="699.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">浮点数运算</text>
|
|
<path d="M610 731.0 C645 731.0 645 763.0 680 763.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="680" y="736.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
|
<text x="912.5" y="763.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">整数转换浮点数</text>
|
|
<path d="M240 804.0 C265 804.0 265 852.0 290 852.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="290" y="810.0" width="320" height="84" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
|
|
<text x="450.0" y="836.6" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例1-5:输出浮点数</text>
|
|
<text x="450.0" y="867.4" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">与精度误差</text>
|
|
<path d="M240 804.0 C265 804.0 265 949.0 290 949.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="290" y="920.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
|
|
<text x="450.0" y="949.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例1-6:火车问题</text>
|
|
<path d="M610 949.0 C645 949.0 645 949.0 680 949.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="680" y="922.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
|
<text x="912.5" y="949.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">数值计算示例</text>
|
|
<path d="M240 804.0 C265 804.0 265 1039.0 290 1039.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="290" y="1010.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
|
|
<text x="450.0" y="1039.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例1-7:对角线</text>
|
|
<path d="M610 1039.0 C645 1039.0 645 1039.0 680 1039.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="680" y="1012.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
|
<text x="912.5" y="1039.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">使用cmath数学库</text>
|
|
<line x1="25" y1="1280.0" x2="55" y2="1280.0" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="55" y="1245.0" width="185" height="70" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
|
<text x="147.5" y="1280.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">变量与常量</text>
|
|
<path d="M240 1280.0 C265 1280.0 265 1183.0 290 1183.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="290" y="1154.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
|
|
<text x="450.0" y="1183.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例1-8:存钱</text>
|
|
<path d="M610 1183.0 C645 1183.0 645 1151.0 680 1151.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="680" y="1124.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
|
<text x="912.5" y="1151.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">定义变量与赋值</text>
|
|
<path d="M610 1183.0 C645 1183.0 645 1215.0 680 1215.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="680" y="1188.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
|
<text x="912.5" y="1215.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">+=等变量自赋值</text>
|
|
<path d="M240 1280.0 C265 1280.0 265 1297.0 290 1297.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="290" y="1268.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
|
|
<text x="450.0" y="1297.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例1-9:计算圆与球</text>
|
|
<path d="M610 1297.0 C645 1297.0 645 1297.0 680 1297.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="680" y="1270.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
|
<text x="912.5" y="1297.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">定义并使用常量</text>
|
|
<path d="M240 1280.0 C265 1280.0 265 1394.0 290 1394.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="290" y="1352.0" width="320" height="84" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
|
|
<text x="450.0" y="1378.6" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例1-10:猴子吃桃</text>
|
|
<text x="450.0" y="1409.4" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例1-11:评测机队列</text>
|
|
<path d="M610 1394.0 C645 1394.0 645 1394.0 680 1394.0" fill="none" stroke="#417b63" stroke-width="2"/>
|
|
<rect x="680" y="1367.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
|
|
<text x="912.5" y="1394.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">数值计算和变量的综合应用</text>
|
|
</g></svg> |