From 58b14c10ba8ef85bee5453276f0c8c5ee7b38307 Mon Sep 17 00:00:00 2001 From: "harrisonj2@berea.edu" Date: Thu, 13 Aug 2026 14:50:43 -0400 Subject: [PATCH] Fixes build introduction build errors --- pretext/IntroCpp/firstcppprogram.ptx | 9 +++++---- pretext/IntroCpp/whylearncpp.ptx | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/pretext/IntroCpp/firstcppprogram.ptx b/pretext/IntroCpp/firstcppprogram.ptx index 6be2ccd..10bb655 100644 --- a/pretext/IntroCpp/firstcppprogram.ptx +++ b/pretext/IntroCpp/firstcppprogram.ptx @@ -1,6 +1,7 @@
Let's look at a C++ program -

A time honored tradition in computer science is to write a program + +

A time honored tradition in computer science is to write a program called hello world. The hello world 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 hello world @@ -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++.

- + + Compilation

A question you may have about this little program is How would I run it on my own machine? Running a C++ program is not as simple as running a @@ -311,5 +313,4 @@ int main() { -

- + \ No newline at end of file diff --git a/pretext/IntroCpp/whylearncpp.ptx b/pretext/IntroCpp/whylearncpp.ptx index 782cec5..67ce8d2 100644 --- a/pretext/IntroCpp/whylearncpp.ptx +++ b/pretext/IntroCpp/whylearncpp.ptx @@ -1,6 +1,7 @@
Why Learn Another Programming Language? -

Python is a great language for beginning programming for several reasons. + +

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 @@ -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.

- + + Why Learn C++? Why not Java or Javascript?

    @@ -71,5 +73,4 @@

-
- + \ No newline at end of file