Skip to content
Open
Show file tree
Hide file tree
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
9 changes: 5 additions & 4 deletions pretext/IntroCpp/firstcppprogram.ptx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<section xml:id="intro-cpp_let-s-look-at-a-c-program">
<title>Let's look at a C++ program</title>
<p>A time honored tradition in computer science is to write a program
<introduction>
<p>A time honored tradition in computer science is to write a program
called <q>hello world.</q> The <q>hello world</q> program is simple and easy.
No logic errors are possible to make, so getting it to run relies only on
understanding the syntax. Let's look at an easy version of <q>hello world</q>
Expand Down Expand Up @@ -57,7 +58,8 @@ int main(){
are some elements of C++ that will fade into the background as you
become used to seeing them. One thing that will help you is to learn a
little bit more about C++.</p>
<subsection xml:id="intro-cpp_compilation">
</introduction>
<subsection xml:id="intro-cpp_compilation">
<title>Compilation</title>
<p>A question you may have about this little program is <q>How would I run it on
my own machine?</q> Running a C++ program is not as simple as running a
Expand Down Expand Up @@ -311,5 +313,4 @@ int main() {


</subsection>
</section>

</section>
9 changes: 5 additions & 4 deletions pretext/IntroCpp/whylearncpp.ptx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<section xml:id="intro-cpp_why-learn-another-programming-language">
<title>Why Learn Another Programming Language?</title>
<p>Python is a great language for beginning programming for several reasons.
<introduction>
<p>Python is a great language for beginning programming for several reasons.
First, the syntax is both sparse and clear. Second, the underlying model of
how objects and variables work is very consistent. Third, you can write
powerful and interesting programs without a lot of work. However, Python
Expand Down Expand Up @@ -31,7 +32,8 @@
conditionals, and functions. And there are other language features that are unique. If
you know what is common in most languages, then in learning a new language, you need only
to focus on what is different from the languages you already know.</p>
<subsection xml:id="intro-cpp_why-learn-c-why-not-java-or-javascript">
</introduction>
<subsection xml:id="intro-cpp_why-learn-c-why-not-java-or-javascript">
<title>Why Learn C++? Why not Java or Javascript?</title>
<blockquote>
<p><ul>
Expand Down Expand Up @@ -71,5 +73,4 @@
</ul></p>
</blockquote>
</subsection>
</section>

</section>