From 7842e1d0ae786d8437be891d3b9857b0612fa918 Mon Sep 17 00:00:00 2001 From: prestonderek Date: Tue, 1 Nov 2022 19:35:23 -0700 Subject: added comment about the else statement for output file error. --- CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp index 25a5632..0499493 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp @@ -99,7 +99,7 @@ int main() PrintTotalsAndSummary(outFile, record_counter); outFile.close(); } - else + else //Only outputs this else if the input file path is good. Otherwise it just jumps to the other else. { cout << "Trouble Opening Output File"; cout << "\n\n\t\t ** About to EXIT NOW! ** "; -- cgit v1.2.3