diff options
| -rw-r--r-- | .vs/cst116-ch7-debugging-Taylorrog/v17/.suo | bin | 25600 -> 24064 bytes | |||
| -rw-r--r-- | .vs/cst116-ch7-debugging-Taylorrog/v17/Browse.VC.db | bin | 15200256 -> 15200256 bytes | |||
| -rw-r--r-- | .vs/slnx.sqlite | bin | 331776 -> 331776 bytes | |||
| -rw-r--r-- | CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp | 3 |
4 files changed, 3 insertions, 0 deletions
diff --git a/.vs/cst116-ch7-debugging-Taylorrog/v17/.suo b/.vs/cst116-ch7-debugging-Taylorrog/v17/.suo Binary files differindex 592c0de..6625b82 100644 --- a/.vs/cst116-ch7-debugging-Taylorrog/v17/.suo +++ b/.vs/cst116-ch7-debugging-Taylorrog/v17/.suo diff --git a/.vs/cst116-ch7-debugging-Taylorrog/v17/Browse.VC.db b/.vs/cst116-ch7-debugging-Taylorrog/v17/Browse.VC.db Binary files differindex bb81059..a6c9779 100644 --- a/.vs/cst116-ch7-debugging-Taylorrog/v17/Browse.VC.db +++ b/.vs/cst116-ch7-debugging-Taylorrog/v17/Browse.VC.db diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite Binary files differindex 3de3c9a..40a8858 100644 --- a/.vs/slnx.sqlite +++ b/.vs/slnx.sqlite diff --git a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp index 10862be..312dcf8 100644 --- a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp +++ b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp @@ -48,6 +48,9 @@ * 1) Run the program without debugging.
* 2) When prompted, enter the value of 10 for your age.
* 3) Why does the program print both "Child" and "Adult"?
+*
+* the semicolon after "else" is ending the statement, so the "cout" on the next line is not conditional and prints every time the program is run.
+*
* 4) Re-run the program this time with debugging and run to
* Breakpoint 2.
* 5) Why is the action with the else executing?
|