|
162 | 162 | <rect fill="rgb(255,165,0)" height="30" stroke="rgb(0,0,0)" width="128" x="256" y="250" /> |
163 | 163 | <text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="30" x="320.0" y="271">Stack</text> |
164 | 164 | <rect fill="rgb(255,255,255)" height="30" stroke="rgb(0,0,0)" width="128" x="256" y="320" /> |
165 | | - <text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="12" x="320.0" y="341">24</text> |
| 165 | + <text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="12" x="320.0" y="341">12</text> |
166 | 166 | <rect fill="rgb(255,255,255)" height="30" stroke="rgb(0,0,0)" width="128" x="256" y="390" /> |
167 | | - <text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="12" x="320.0" y="411">12</text> |
| 167 | + <text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="12" x="320.0" y="411">24</text> |
168 | 168 | <rect fill="rgb(255,165,0)" height="30" stroke="rgb(0,0,0)" width="128" x="264" y="468" /> |
169 | 169 | <rect fill="rgb(255,165,0)" height="30" stroke="rgb(0,0,0)" width="128" x="260" y="464" /> |
170 | 170 | <rect fill="rgb(255,165,0)" height="30" stroke="rgb(0,0,0)" width="128" x="256" y="460" /> |
171 | 171 | <text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="30" x="320.0" y="481">Stack</text> |
172 | 172 | <rect fill="rgb(255,255,255)" height="30" stroke="rgb(0,0,0)" width="128" x="256" y="530" /> |
173 | | - <text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="12" x="320.0" y="551">24</text> |
| 173 | + <text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="12" x="320.0" y="551">57</text> |
174 | 174 | <rect fill="rgb(255,255,255)" height="30" stroke="rgb(0,0,0)" width="128" x="256" y="600" /> |
175 | 175 | <text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="12" x="320.0" y="621">12</text> |
176 | 176 | <rect fill="rgb(255,255,255)" height="30" stroke="rgb(0,0,0)" width="128" x="256" y="670" /> |
177 | | - <text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="12" x="320.0" y="691">57</text> |
| 177 | + <text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="12" x="320.0" y="691">24</text> |
178 | 178 | <rect fill="rgb(255,165,0)" height="30" stroke="rgb(0,0,0)" width="128" x="648" y="48" /> |
179 | 179 | <rect fill="rgb(255,165,0)" height="30" stroke="rgb(0,0,0)" width="128" x="644" y="44" /> |
180 | 180 | <rect fill="rgb(255,165,0)" height="30" stroke="rgb(0,0,0)" width="128" x="640" y="40" /> |
181 | 181 | <text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="30" x="704.0" y="61">Stack</text> |
182 | 182 | <rect fill="rgb(255,255,255)" height="30" stroke="rgb(0,0,0)" width="128" x="640" y="110" /> |
183 | | - <text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="12" x="704.0" y="131">24</text> |
| 183 | + <text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="12" x="704.0" y="131">12</text> |
184 | 184 | <rect fill="rgb(255,255,255)" height="30" stroke="rgb(0,0,0)" width="128" x="640" y="180" /> |
185 | | - <text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="12" x="704.0" y="201">12</text> |
| 185 | + <text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="12" x="704.0" y="201">24</text> |
186 | 186 | <rect fill="rgb(46,139,87)" height="30" stroke="rgb(0,0,0)" width="128" x="64" y="40" /> |
187 | 187 | <text fill="rgb(0,0,0)" font-family="sans-serif" font-size="11" font-style="normal" font-weight="normal" text-anchor="middle" textLength="42" x="128.0" y="61">push 24</text> |
188 | 188 | <rect fill="rgb(46,139,87)" height="30" stroke="rgb(0,0,0)" width="128" x="64" y="250" /> |
@@ -226,7 +226,7 @@ <h3><span class="section-number">5.1.1. </span>An example: reverse Polish notati |
226 | 226 | the stack, while each operator pops the right number of arguments off |
227 | 227 | the stack and pushes the result onto the stack. At the end of the |
228 | 228 | calculation, the result of the calculation is on the top of the stack. |
229 | | -<a class="reference internal" href="#rpcalc"><span class="std std-numref">Listing 5.1</span></a> shows <a class="reference internal" href="3_objects.html#term-pseudocode"><span class="xref std std-term">pseudocode</span></a>, for a reverse Polish |
| 229 | +<a class="reference internal" href="#rpcalc"><span class="std std-numref">Listing 5.1</span></a> shows <a class="reference internal" href="3_objects.html#term-pseudocode"><span class="xref std std-term">pseudocode</span></a> for a reverse Polish |
230 | 230 | calculator.</p> |
231 | 231 | <div class="literal-block-wrapper docutils container" id="id6"> |
232 | 232 | <span id="rpcalc"></span><div class="code-block-caption"><span class="caption-number">Listing 5.1 </span><span class="caption-text">Pseudocode for a reverse Polish calculator implemented |
|
0 commit comments