From b5cc598f4f8cecfcfb596d8c1369ab8a7f560fc2 Mon Sep 17 00:00:00 2001 From: alexandra-apetroaei Date: Tue, 1 Nov 2022 19:34:29 -0800 Subject: change --- CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | 4 ++-- CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj | 4 ++++ CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters | 4 ++++ 3 files changed, 10 insertions(+), 2 deletions(-) (limited to 'CST116-Ch11-Debugging') diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp index 53830da..a0295db 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp @@ -78,10 +78,10 @@ int main() int age[EMPLOYEES]; int record_counter(0); - ifstream inFile; + ifstream inFile("C:\\TEMP\\Chap_11_Report.txt"); // Notice how this automatically opens the file - ofstream outFile("C:\\TEMP\\Chap_11_Report.txt"); + ofstream outFile; inFile.open("C:\\TEMP\\Chap_11_data.txt"); diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj index 2073e5b..05b57a1 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj @@ -129,6 +129,10 @@ + + + + diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters index 2029dc7..d1bbc46 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters @@ -19,4 +19,8 @@ Source Files + + + + \ No newline at end of file -- cgit v1.2.3