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

32 lines
3.5 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" width="922" height="145" viewBox="0 0 922 145" 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="922" height="145" fill="white"/>
<g font-family="Microsoft YaHei, Noto Sans CJK SC, Arial, sans-serif" fill="#193b32" stroke-linecap="round" stroke-linejoin="round">
<rect x="20" y="20" width="71" height="60" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="55.5" y="50.0" text-anchor="middle" dominant-baseline="central" font-size="18" fill="#193b32">( )</text>
<rect x="91" y="20" width="146" height="60" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="164.0" y="37.4" text-anchor="middle" dominant-baseline="central" font-size="18" fill="#193b32">!、−(负号)、</text>
<text x="164.0" y="62.6" text-anchor="middle" dominant-baseline="central" font-size="18" fill="#193b32">++、--</text>
<rect x="237" y="20" width="101" height="60" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="287.5" y="50.0" text-anchor="middle" dominant-baseline="central" font-size="18" fill="#193b32">*、/、%</text>
<rect x="338" y="20" width="116" height="60" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="396.0" y="37.4" text-anchor="middle" dominant-baseline="central" font-size="18" fill="#193b32">+、−</text>
<text x="396.0" y="62.6" text-anchor="middle" dominant-baseline="central" font-size="18" fill="#193b32">(加减运算)</text>
<rect x="454" y="20" width="116" height="60" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="512.0" y="37.4" text-anchor="middle" dominant-baseline="central" font-size="18" fill="#193b32">&lt;&lt;、&gt;&gt;</text>
<text x="512.0" y="62.6" text-anchor="middle" dominant-baseline="central" font-size="18" fill="#193b32">(左右位移)</text>
<rect x="570" y="20" width="101" height="60" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="620.5" y="37.4" text-anchor="middle" dominant-baseline="central" font-size="18" fill="#193b32">&lt;、&gt;、</text>
<text x="620.5" y="62.6" text-anchor="middle" dominant-baseline="central" font-size="18" fill="#193b32">&gt;=、&lt;=</text>
<rect x="671" y="20" width="101" height="60" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="721.5" y="50.0" text-anchor="middle" dominant-baseline="central" font-size="18" fill="#193b32">==、!=</text>
<rect x="772" y="20" width="65" height="60" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="804.5" y="50.0" text-anchor="middle" dominant-baseline="central" font-size="18" fill="#193b32">&amp;&amp;</text>
<rect x="837" y="20" width="65" height="60" rx="0" fill="#edf5ed" stroke="#417b63" stroke-width="2"/>
<text x="869.5" y="50.0" text-anchor="middle" dominant-baseline="central" font-size="18" fill="#193b32">||</text>
<line x1="817" y1="112" x2="112" y2="112" stroke="#417b63" stroke-width="2" marker-end="url(#arrow)"/>
<text x="68" y="112.0" text-anchor="middle" dominant-baseline="central" font-size="18" fill="#193b32">优先度高</text>
<text x="857" y="112.0" text-anchor="middle" dominant-baseline="central" font-size="18" fill="#193b32">优先度低</text>
</g></svg>