Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use captions not titles #819

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions pretext/AlgorithmAnalysis/VectorAnalysis.ptx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
making our vector.</p>

<listing xml:id="ls_mkvectcpp">
<title>Using <c>push_back()</c></title>
<caption>Using <c>push_back()</c></caption>
<program language="cpp"><input>
#include &lt;iostream&gt;
#include &lt;vector&gt;
Expand Down Expand Up @@ -69,7 +69,7 @@ int main() {
of our test functions 10,000 times within a <c>for</c> loop.</p>

<listing xml:id="lst-vectcpp2">
<title>Timing <c>push_back()</c></title>
<caption>Timing <c>push_back()</c></caption>
<program xml:id="vectcpp2" interactive="activecode" language="cpp"><input>
#include &lt;iostream&gt;
#include &lt;vector&gt;
Expand Down Expand Up @@ -107,7 +107,7 @@ int main(){
adequately sized space in memory.</p>

<listing xml:id="lst-vectcpp3">
<title>Reserved Versus Unreserved <c>push_back()</c></title>
<caption>Reserved Versus Unreserved <c>push_back()</c></caption>
<program xml:id="vectcpp3" interactive="activecode" language="cpp"><input>
#include &lt;iostream&gt;
#include &lt;vector&gt;
Expand Down Expand Up @@ -171,7 +171,7 @@ int main(){
was a good one.</p>

<table xml:id="algorithm_analysis_algorithm_analysis_tbl_vectbigocpp"><tabular>
<title><term>Table 2: Big-O Efficiency of C++ Vector Operators</term></title>
<title>Big-O Efficiency of C++ Vector Operators</title>



Expand Down Expand Up @@ -304,7 +304,8 @@ int main(){
that the vector is decreasing in size by 1 each time through the loop.</p>

<listing xml:id="lst_popmeascpp">
<program xml:id="popbackvserase" interactive="activecode" language="cpp">
<caption>Timing of <c>push_back</c> Versus <c>erase</c></caption>
<program xml:id="popbackvserase" interactive="activecode" language="cpp">
<input>
#include &lt;iostream&gt;
#include &lt;vector&gt;
Expand Down