summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei F <[email protected]>2022-11-01 22:38:45 -0700
committerAndrei F <[email protected]>2022-11-01 22:38:45 -0700
commita2dab43a586a88e239b3e28264998870e3080de8 (patch)
treea49d555a041dda98847c7cc871fb48e13e71ab12
parentCommiting (diff)
downloadarchived-cst116-ch11-debugging-florea-a2dab43a586a88e239b3e28264998870e3080de8.tar.xz
archived-cst116-ch11-debugging-florea-a2dab43a586a88e239b3e28264998870e3080de8.zip
Working through first part
-rw-r--r--.gitignore2
-rw-r--r--CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp4
-rw-r--r--Chap_11_Report.txt17
3 files changed, 20 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 6813020..b410d5e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,7 +16,7 @@
# Mono auto generated files
mono_crash.*
-../a.out
+a.out
# Build results
[Dd]ebug/
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
index 0e8fe34..84e77eb 100644
--- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
+++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
@@ -88,9 +88,9 @@ int main()
ifstream inFile;
// Notice how this automatically opens the file
- ofstream outFile("../Chap_11_Report.txt");
+ ofstream outFile("Chap_11_Report.txt");
- inFile.open("../Chap_11_data.txt");
+ inFile.open("Chap_11_data.txt");
if (inFile.is_open())
{
diff --git a/Chap_11_Report.txt b/Chap_11_Report.txt
new file mode 100644
index 0000000..c17cff1
--- /dev/null
+++ b/Chap_11_Report.txt
@@ -0,0 +1,17 @@
+ Here is the Output File
+John 19
+Molly 23
+Tim 48
+Keil 42
+Trinh 21
+Anthony 25
+Kevin 27
+Cheryl 32
+Kim 16
+Dave 25
+Will 34
+ 13975552
+
+
+ ** Total Records: 11 **
+ The End