diff options
Diffstat (limited to 'CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp')
| -rw-r--r-- | CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
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; |