From 23d704e14e6df0a561204a0836bd55e2c2a29e6f Mon Sep 17 00:00:00 2001 From: Taylor Rogers Date: Tue, 1 Nov 2022 09:08:42 -0700 Subject: Finished Exercise --- CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp') diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp index d559f50..36ee294 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp @@ -56,6 +56,9 @@ * problem. * 6) Rebuild and execute your program to verify that your messages * are correct. +* +* If I change the output file name, it just creates a new file with the incorrect name. The inFile name throws an error as expected though +* * 7) Correct the path names. * 8) Build and execute your code and carefully check your * output on both the console and in the output file. @@ -90,7 +93,7 @@ int main() ifstream inFile; // Notice how this automatically opens the file - ofstream outFile("C:\\Users\\taylo\\OneDrive\\OIT\\2022_Fall\\CST116\\Week_6\\Chap_11_Report.txt"); + ofstream outFile("C:\\Users\\taylo\\OneDrive\\OIT\\2022_Fall\\CST116\\Week_6\\bChap_11_Report.txt"); inFile.open("C:\\Users\\taylo\\OneDrive\\OIT\\2022_Fall\\CST116\\Week_6\\Names.txt"); @@ -107,13 +110,13 @@ int main() } else { - cout << "Trouble Opening File"; + cout << "Trouble Opening the Chapter 11 Report File"; cout << "\n\n\t\t ** About to EXIT NOW! ** "; } } else { - cout << "Trouble Opening File"; + cout << "Trouble Opening the Names File"; cout << "\n\n\t\t ** About to EXIT NOW! ** "; } return 0; -- cgit v1.2.3