From 6b5d3554131a3207a9997caa208b4a0788b802e0 Mon Sep 17 00:00:00 2001 From: CEOofOogaBooga Date: Tue, 8 Nov 2022 19:00:33 -0800 Subject: Start --- CH11 text file.txt | 4 ++++ CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 CH11 text file.txt diff --git a/CH11 text file.txt b/CH11 text file.txt new file mode 100644 index 0000000..d7df266 --- /dev/null +++ b/CH11 text file.txt @@ -0,0 +1,4 @@ +Thomas 21 +Wyatt 13 +Ben 50 +Matthew 42 \ No newline at end of file diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp index 53830da..afecc34 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp @@ -1,6 +1,10 @@ /******************************************************************** * File: Chapter 11 Debug.cpp * +* Thomas Trinh +* CST116 +* Ch11 Arrays and Simple Strings +* * General Instructions: Complete each step before proceeding to the * next. * @@ -80,10 +84,11 @@ int main() ifstream inFile; + // Notice how this automatically opens the file - ofstream outFile("C:\\TEMP\\Chap_11_Report.txt"); + ofstream outFile("C:\\Users\\furyf\\OneDrive\\Desktop\\Homework\\CST Homework\\CST116 Ch11\\CH11 text file.txt"); - inFile.open("C:\\TEMP\\Chap_11_data.txt"); + inFile.open("C:\\Users\\furyf\\OneDrive\\Desktop\\Homework\\CST Homework\\CST116 Ch11\\CH11 text file.txt"); if (inFile.is_open()) { -- cgit v1.2.3