diff options
| author | Taylor Rogers <[email protected]> | 2022-11-01 09:08:42 -0700 |
|---|---|---|
| committer | Taylor Rogers <[email protected]> | 2022-11-01 09:08:42 -0700 |
| commit | 23d704e14e6df0a561204a0836bd55e2c2a29e6f (patch) | |
| tree | 052bdb927ee035f66e98323e902396aecadf0ce9 /CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | |
| parent | Answered multiple Qs (diff) | |
| download | cst116-ch11-debugging-taylorrog-23d704e14e6df0a561204a0836bd55e2c2a29e6f.tar.xz cst116-ch11-debugging-taylorrog-23d704e14e6df0a561204a0836bd55e2c2a29e6f.zip | |
Finished Exercise
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; |