aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprestonderek <[email protected]>2022-10-12 14:10:22 -0700
committerprestonderek <[email protected]>2022-10-12 14:10:22 -0700
commitf7b5936e5a39f4ce08c9520933d9fbdff4af89e5 (patch)
tree880bc77a813381c9b9ed83815bcd9b419fa2ab20
parentExsersize 3 issue found. (diff)
downloadcst116-ch7-debugging-prestonderek-f7b5936e5a39f4ce08c9520933d9fbdff4af89e5.tar.xz
cst116-ch7-debugging-prestonderek-f7b5936e5a39f4ce08c9520933d9fbdff4af89e5.zip
Removed ; from else and indented line 72
-rw-r--r--CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp
index d576211..448b9eb 100644
--- a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp
+++ b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp
@@ -68,8 +68,8 @@ int main()
cout << "Senior" << endl;
// Breakpoint 2
// Put a breakpoint on the following line
- else; //the following cout statement is happening after the else. This else statement is currently useless.
- cout << "Adult" << endl;
+ else //the following cout statement is happening after the else. This else statement is currently useless. Remove the ; and indent the cout statement on line 72.
+ cout << "Adult" << endl;
return 0;
} \ No newline at end of file