diff options
| author | prestonderek <[email protected]> | 2022-10-12 14:10:22 -0700 |
|---|---|---|
| committer | prestonderek <[email protected]> | 2022-10-12 14:10:22 -0700 |
| commit | f7b5936e5a39f4ce08c9520933d9fbdff4af89e5 (patch) | |
| tree | 880bc77a813381c9b9ed83815bcd9b419fa2ab20 /CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp | |
| parent | Exsersize 3 issue found. (diff) | |
| download | cst116-ch7-debugging-prestonderek-f7b5936e5a39f4ce08c9520933d9fbdff4af89e5.tar.xz cst116-ch7-debugging-prestonderek-f7b5936e5a39f4ce08c9520933d9fbdff4af89e5.zip | |
Removed ; from else and indented line 72
Diffstat (limited to 'CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp')
| -rw-r--r-- | CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp | 4 |
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 |