diff options
| author | tafaar <[email protected]> | 2022-10-31 21:07:11 -0700 |
|---|---|---|
| committer | tafaar <[email protected]> | 2022-10-31 21:07:11 -0700 |
| commit | 03b597f675f05fa01a7f3d3838ed4ed57ef732f7 (patch) | |
| tree | 657358f3fbb7ce5443298b77ce692bb7d985fbce /CST116-Ch11-Debugging | |
| parent | did 2.3 (diff) | |
| download | cst116-ch11-debugging-hill-03b597f675f05fa01a7f3d3838ed4ed57ef732f7.tar.xz cst116-ch11-debugging-hill-03b597f675f05fa01a7f3d3838ed4ed57ef732f7.zip | |
did 2.4 and 2.5
Diffstat (limited to 'CST116-Ch11-Debugging')
| -rw-r--r-- | CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
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; |