diff options
| author | Trevor Bouchillon <[email protected]> | 2022-10-05 15:37:32 -0700 |
|---|---|---|
| committer | Trevor Bouchillon <[email protected]> | 2022-10-05 15:37:32 -0700 |
| commit | a8b0a22c028170b6dd6ce0c6325eb9f66eb6d9f6 (patch) | |
| tree | 36eb95f7d3fe4550f9b1d87cd89529db309058c4 | |
| parent | Debug 1 question answered. (diff) | |
| download | cst116-ch7-debugging-daboochillin-a8b0a22c028170b6dd6ce0c6325eb9f66eb6d9f6.tar.xz cst116-ch7-debugging-daboochillin-a8b0a22c028170b6dd6ce0c6325eb9f66eb6d9f6.zip | |
Debug1 question answered.
| -rw-r--r-- | CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp index f64adfe..064a99e 100644 --- a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp +++ b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp @@ -1,5 +1,8 @@ /********************************************************************
* File: CST116-Ch7-Debugging.cpp
+*
+* Trevor Bouchillon
+* CST-116
*
* General Instructions: Complete each step before proceeding to the
* next.
@@ -13,6 +16,11 @@ * the value in age is what you typed in.
* 5) Step over the if statement.
* 6) Why did the value in age change?
+* ***************************************************************************
+* The value in age changed because because within the if statement age is supposed
+ to be compared to the age of 1, but the code is actually not comparing but is instead
+ assigning it the value of 1.
+* ***************************************************************************
* 7) Fix the problem and repeat Steps 2 � 5 to verify the
* problem was corrected.
* 8) Stop debugging.
|