summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprestonderek <[email protected]>2022-11-01 19:30:30 -0700
committerprestonderek <[email protected]>2022-11-01 19:30:30 -0700
commit14324596ea19cb44bb1bd50fefd16f0578a1a546 (patch)
tree25180e9d4a1b7056a0ae95f6ca6bf5b004b6150d
parentchanged input and output file names (diff)
downloadcst116-ch11-debugging-prestonderek-14324596ea19cb44bb1bd50fefd16f0578a1a546.tar.xz
cst116-ch11-debugging-prestonderek-14324596ea19cb44bb1bd50fefd16f0578a1a546.zip
Changed cout statements for error codes
-rw-r--r--CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
index 2cccecf..eb38792 100644
--- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
+++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
@@ -85,7 +85,7 @@ int main()
// ofstream outFile("C:\\TEMP\\Chap_11_Report.txt");
//inFile.open("C:\\TEMP\\Chap_11_data.txt");
- ofstream outFile("C:\\temp\\Chap_11_Repor.txt");
+ ofstream outFile("C:\\temp\\Chap_11_Report.txt");
inFile.open("C:\\Users\\pres\\source\\repos\\cst116-ch11-debugging-prestonderek\\Debug11File1.txt");
if (inFile.is_open())
@@ -101,13 +101,13 @@ int main()
}
else
{
- cout << "Trouble Opening File";
+ cout << "Trouble Opening Input File";
cout << "\n\n\t\t ** About to EXIT NOW! ** ";
}
}
else
{
- cout << "Trouble Opening File";
+ cout << "Trouble Opening Output File";
cout << "\n\n\t\t ** About to EXIT NOW! ** ";
}
return 0;