From 78df629b0e153f13c23a5ab5fe4af89c5c298b2b Mon Sep 17 00:00:00 2001 From: jacobdw22 Date: Wed, 5 Oct 2022 16:35:39 -0700 Subject: simple changes --- CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp') diff --git a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp index 174e44d..b761c68 100644 --- a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp +++ b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp @@ -42,6 +42,7 @@ * 4) Re-run the program this time with debugging and run to * Breakpoint 2. * 5) Why is the action with the else executing? +* It is not in the else statement, it is just following it. * 6) Fix the problem and re-run to verify the problem was corrected. ********************************************************************/ @@ -69,8 +70,8 @@ int main() cout << "Senior" << endl; // Breakpoint 2 // Put a breakpoint on the following line - else; - cout << "Adult" << endl; + else + cout << "Adult" << endl; return 0; } \ No newline at end of file -- cgit v1.2.3