diff options
| author | prestonderek <[email protected]> | 2022-10-12 13:57:18 -0700 |
|---|---|---|
| committer | prestonderek <[email protected]> | 2022-10-12 13:57:18 -0700 |
| commit | 6d7daa5102ad227d1b83e3c4a49919487e4fc653 (patch) | |
| tree | d66001883eb8abb61b4edbeee50feb6e8315e589 /CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp | |
| parent | Commit at last step of exersize one after changing to an equality statement. (diff) | |
| download | cst116-ch7-debugging-prestonderek-6d7daa5102ad227d1b83e3c4a49919487e4fc653.tar.xz cst116-ch7-debugging-prestonderek-6d7daa5102ad227d1b83e3c4a49919487e4fc653.zip | |
Commit again.
Diffstat (limited to 'CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp')
| -rw-r--r-- | CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp | 2 |
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;
|