From 03b597f675f05fa01a7f3d3838ed4ed57ef732f7 Mon Sep 17 00:00:00 2001 From: tafaar Date: Mon, 31 Oct 2022 21:07:11 -0700 Subject: did 2.4 and 2.5 --- CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 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 8ab56e1..24ae3fa 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp @@ -62,6 +62,9 @@ * 5) Update the file related error messages within the code * to also provide the specific name of the file that is having a * problem. +* +* Done +* * 6) Rebuild and execute your program to verify that your messages * are correct. * 7) Correct the path names. @@ -98,9 +101,9 @@ int main() ifstream inFile; // Notice how this automatically opens the file - ofstream outFile("C:\\Users\\Aaron Hill\\Desktop\\Chap_11_Report.txt"); + ofstream outFile("C:\\Users\\Aaron Hill\\Desktop\\Chap_11_Report.txxt"); - inFile.open("C:\\Users\\Aaron Hill\\Desktop\\Chap11-MyData.txt"); + inFile.open("C:\\Users\\Aaron Hill\\Desktop\\Chap11-MyData.txxt"); if (inFile.is_open()) { @@ -115,13 +118,13 @@ int main() } else { - cout << "Trouble Opening File"; + cout << "Trouble Opening Output File"; cout << "\n\n\t\t ** About to EXIT NOW! ** "; } } else { - cout << "Trouble Opening File"; + cout << "Trouble Opening Input File"; cout << "\n\n\t\t ** About to EXIT NOW! ** "; } return 0; -- cgit v1.2.3