aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--2b.cpp14
-rw-r--r--2c.cpp11
2 files changed, 25 insertions, 0 deletions
diff --git a/2b.cpp b/2b.cpp
new file mode 100644
index 0000000..82c00a3
--- /dev/null
+++ b/2b.cpp
@@ -0,0 +1,14 @@
+//Lab work by Jordan Harris-Toovy for OIT's CST 116-01P course. Date: Oct 4, 2021
+//This work is based on material from the book 'C++ Learn by doing' edition 201901 by Todd Breedlove, Troy Scevers, and Randal Albert
+//This code is made for part 2b of lab 1
+
+#include <iostream>
+
+int main() {
+ std::cout << "Modified version of original C program"
+ << " (by Kernighan & Ritchie) \n";
+
+ std::cout << "Hello world!";
+
+ return 0;
+} \ No newline at end of file
diff --git a/2c.cpp b/2c.cpp
new file mode 100644
index 0000000..1fc5515
--- /dev/null
+++ b/2c.cpp
@@ -0,0 +1,11 @@
+//Lab work by Jordan Harris-Toovy for OIT's CST 116-01P course. Date: Oct 4, 2021
+//This code is made for part 2c of lab 1
+
+#include <iostream>
+
+int main() {
+ std::cout << "My name is Jordan Harris-Toovy\n"
+ << "I am approximately 24 years old";
+
+ return 0;
+} \ No newline at end of file