aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprestonderek <[email protected]>2022-10-12 13:57:18 -0700
committerprestonderek <[email protected]>2022-10-12 13:57:18 -0700
commit6d7daa5102ad227d1b83e3c4a49919487e4fc653 (patch)
treed66001883eb8abb61b4edbeee50feb6e8315e589
parentCommit at last step of exersize one after changing to an equality statement. (diff)
downloadcst116-ch7-debugging-prestonderek-6d7daa5102ad227d1b83e3c4a49919487e4fc653.tar.xz
cst116-ch7-debugging-prestonderek-6d7daa5102ad227d1b83e3c4a49919487e4fc653.zip
Commit again.
-rw-r--r--CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp
index f64adfe..cad680a 100644
--- a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp
+++ b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp
@@ -56,7 +56,7 @@ int main()
// Breakpoint 1
// Put a breakpoint on the following line
- if (age = 1)
+ if (age == 1) //made this an equality statement rather than making age equal to 1.
cout << "First Birthday" << endl;
else if (age >= 12 || age <= 19)
cout << "Teenager" << endl;