summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei F <[email protected]>2022-11-01 22:44:49 -0700
committerAndrei F <[email protected]>2022-11-01 22:44:49 -0700
commitfa8d58123500ba7ff0986124e5d5355771d54fc5 (patch)
treed4a4fbc6e6d186558e32c5f50d925982a659050c
parentFinished part 1 (diff)
downloadcst116-ch11-debugging-florea-fa8d58123500ba7ff0986124e5d5355771d54fc5.tar.xz
cst116-ch11-debugging-florea-fa8d58123500ba7ff0986124e5d5355771d54fc5.zip
Finished part 2
-rw-r--r--CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
index ba5ea16..5147bc6 100644
--- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
+++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
@@ -57,6 +57,9 @@ but it went one over than what it was supposed to.
* 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.
@@ -112,13 +115,13 @@ int main()
}
else
{
- cout << "Trouble Opening File";
+ cout << "Trouble Opening Output File"; // Added "Output"
cout << "\n\n\t\t ** About to EXIT NOW! ** ";
}
}
else
{
- cout << "Trouble Opening File";
+ cout << "Trouble Opening Input File"; // Added "Input"
cout << "\n\n\t\t ** About to EXIT NOW! ** ";
}
return 0;