diff options
| author | Andrei F <[email protected]> | 2022-11-01 22:38:45 -0700 |
|---|---|---|
| committer | Andrei F <[email protected]> | 2022-11-01 22:38:45 -0700 |
| commit | a2dab43a586a88e239b3e28264998870e3080de8 (patch) | |
| tree | a49d555a041dda98847c7cc871fb48e13e71ab12 | |
| parent | Commiting (diff) | |
| download | archived-cst116-ch11-debugging-florea-a2dab43a586a88e239b3e28264998870e3080de8.tar.xz archived-cst116-ch11-debugging-florea-a2dab43a586a88e239b3e28264998870e3080de8.zip | |
Working through first part
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | 4 | ||||
| -rw-r--r-- | Chap_11_Report.txt | 17 |
3 files changed, 20 insertions, 3 deletions
@@ -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 |