From d6d85baea968a4b44ee5a51b84b7e46474cbc599 Mon Sep 17 00:00:00 2001 From: prestonderek Date: Tue, 1 Nov 2022 19:27:58 -0700 Subject: commit for report log --- CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | 6 ++++-- CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj | 1 + .../CST116-Ch11-Debugging.vcxproj.filters | 1 + Chap_11_Report_Preston.txt | 17 +++++++++++++++++ Debug11File1.txt | 12 ++++++++++++ 5 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 Chap_11_Report_Preston.txt create mode 100644 Debug11File1.txt diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp index 53830da..3502ab1 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp @@ -81,9 +81,11 @@ int main() ifstream inFile; // Notice how this automatically opens the file - ofstream outFile("C:\\TEMP\\Chap_11_Report.txt"); + // ofstream outFile("C:\\TEMP\\Chap_11_Report.txt"); - inFile.open("C:\\TEMP\\Chap_11_data.txt"); + //inFile.open("C:\\TEMP\\Chap_11_data.txt"); + ofstream outFile("C:\\temp\\Chap_11_Report.txt"); + inFile.open("C:\Users\prest\source\repos\cst116-ch11-debugging-prestonderek\Debug11File1.txt"); if (inFile.is_open()) { diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj index 5f0b4c6..19b6f1b 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj @@ -130,6 +130,7 @@ + diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters index 61f7a0c..0fe3e2d 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters @@ -21,5 +21,6 @@ + \ No newline at end of file diff --git a/Chap_11_Report_Preston.txt b/Chap_11_Report_Preston.txt new file mode 100644 index 0000000..cbd9f35 --- /dev/null +++ b/Chap_11_Report_Preston.txt @@ -0,0 +1,17 @@ + Here is the Output File +Tony 12 +John 1 +Sara 3 +Derek 2 +Norah 5 +Mylah 7 +Hannah 10 +Bob 4 +Dylan 9 +Wixy 6 +Filter 11 +Abby 8 + + + ** Total Records: 11 ** + The End diff --git a/Debug11File1.txt b/Debug11File1.txt new file mode 100644 index 0000000..7bcc9e5 --- /dev/null +++ b/Debug11File1.txt @@ -0,0 +1,12 @@ +Tony 12 +John 1 +Sara 3 +Derek 2 +Norah 5 +Mylah 7 +Hannah 10 +Bob 4 +Dylan 9 +Wixy 6 +Filter 11 +Abby 8 \ No newline at end of file -- cgit v1.2.3