Files
cpp-courseware/2.Course/1.深入浅出程序设计竞赛(基础篇)/书籍:深入浅出程序设计竞赛(基础篇)/images/svg/de709a8b69903f38d95bd1bb2c5967e7f9ce50f050e73c32cceea696abbc057e.svg
T

96 lines
11 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="1379" viewBox="0 0 1200 1379" 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="1379" 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 V1233.0" fill="none" stroke="#417b63" stroke-width="2"/>
<line x1="25" y1="398.0" x2="55" y2="398.0" stroke="#417b63" stroke-width="2"/>
<rect x="55" y="363.0" width="185" height="70" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="147.5" y="398.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">字符数组</text>
<path d="M240 398.0 C265 398.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">例6-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">使用字符数组存储字符串</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 398.0 C265 398.0 265 297.0 290 297.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="290" y="268.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="450.0" y="297.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例6-2:凯撒密码</text>
<path d="M610 297.0 C645 297.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">使用scanf()读入字符串</text>
<path d="M610 297.0 C645 297.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="M240 398.0 C265 398.0 265 467.0 290 467.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="290" y="438.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="450.0" y="467.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例6-3:笨小猴</text>
<path d="M610 467.0 C645 467.0 645 403.0 680 403.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="376.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="403.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">使用strlen()返回字符串长度</text>
<path d="M610 467.0 C645 467.0 645 467.0 680 467.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="440.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="467.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">使用strcpy()复制字符数组</text>
<path d="M610 467.0 C645 467.0 645 531.0 680 531.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="504.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="531.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">字符数组的初始化</text>
<path d="M240 398.0 C265 398.0 265 637.0 290 637.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="290" y="608.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="450.0" y="637.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例6-4:口算练习题</text>
<path d="M610 637.0 C645 637.0 645 605.0 680 605.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="578.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="605.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">使用fgets()读入一行字符串</text>
<path d="M610 637.0 C645 637.0 645 669.0 680 669.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="642.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="669.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">使用sscanf()格式化字符串</text>
<line x1="25" y1="919.0" x2="55" y2="919.0" stroke="#417b63" stroke-width="2"/>
<rect x="55" y="877.0" width="185" height="84" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="147.5" y="903.6" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">string类型字符</text>
<text x="147.5" y="934.4" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">串</text>
<path d="M240 919.0 C265 919.0 265 805.0 290 805.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="290" y="776.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="450.0" y="805.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例6-5:标题统计</text>
<path d="M610 805.0 C645 805.0 645 773.0 680 773.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="746.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="773.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">定义和使用string字符串</text>
<path d="M610 805.0 C645 805.0 645 837.0 680 837.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="810.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="837.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">使用cin读入string字符串</text>
<path d="M240 919.0 C265 919.0 265 943.0 290 943.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="290" y="914.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="450.0" y="943.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例6-6:文字处理软件</text>
<path d="M610 943.0 C645 943.0 645 911.0 680 911.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="884.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="911.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">STL字符串string的各项功能</text>
<path d="M610 943.0 C645 943.0 645 975.0 680 975.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="948.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="975.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">string字符串的赋值</text>
<path d="M240 919.0 C265 919.0 265 1057.0 290 1057.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="290" y="1028.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="450.0" y="1057.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例6-7:统计单词数</text>
<path d="M610 1057.0 C645 1057.0 645 1057.0 680 1057.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="1030.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="1057.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">string类型的使用技巧</text>
<line x1="25" y1="1233.0" x2="55" y2="1233.0" stroke="#417b63" stroke-width="2"/>
<rect x="55" y="1191.0" width="185" height="84" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="147.5" y="1217.6" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">文件操作与重定</text>
<text x="147.5" y="1248.4" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">向</text>
<path d="M240 1233.0 C265 1233.0 265 1233.0 290 1233.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="290" y="1204.0" width="320" height="58" rx="7" fill="white" stroke="#417b63" stroke-width="2"/>
<text x="450.0" y="1233.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">例6-8:算法竞赛试题案例</text>
<path d="M610 1233.0 C645 1233.0 645 1169.0 680 1169.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="1142.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="1169.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">注意阅读试题</text>
<path d="M610 1233.0 C645 1233.0 645 1233.0 680 1233.0" fill="none" stroke="#417b63" stroke-width="2"/>
<rect x="680" y="1206.0" width="465" height="54" rx="7" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="912.5" y="1233.0" text-anchor="middle" dominant-baseline="central" font-size="22" fill="#193b32">使用freopen()重定向输入/输出</text>
<path d="M610 1233.0 C645 1233.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>
</g></svg>