aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor Rogers <[email protected]>2022-10-08 14:58:05 -0700
committerTaylor Rogers <[email protected]>2022-10-08 14:58:05 -0700
commit77562481d1413b8e70f68cad87698a9738b92718 (patch)
tree76de26bb22b309aa92fac93e317c8f5ad6da05f0
parentAnswered exercise 2 Q6 (diff)
downloadarchived-cst116-ch7-debugging-taylorrog-77562481d1413b8e70f68cad87698a9738b92718.tar.xz
archived-cst116-ch7-debugging-taylorrog-77562481d1413b8e70f68cad87698a9738b92718.zip
Answered exercise 3 Q3
-rw-r--r--.vs/cst116-ch7-debugging-Taylorrog/v17/.suobin25600 -> 24064 bytes
-rw-r--r--.vs/cst116-ch7-debugging-Taylorrog/v17/Browse.VC.dbbin15200256 -> 15200256 bytes
-rw-r--r--.vs/slnx.sqlitebin331776 -> 331776 bytes
-rw-r--r--CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp3
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
index 592c0de..6625b82 100644
--- a/.vs/cst116-ch7-debugging-Taylorrog/v17/.suo
+++ b/.vs/cst116-ch7-debugging-Taylorrog/v17/.suo
Binary files differ
diff --git a/.vs/cst116-ch7-debugging-Taylorrog/v17/Browse.VC.db b/.vs/cst116-ch7-debugging-Taylorrog/v17/Browse.VC.db
index bb81059..a6c9779 100644
--- a/.vs/cst116-ch7-debugging-Taylorrog/v17/Browse.VC.db
+++ b/.vs/cst116-ch7-debugging-Taylorrog/v17/Browse.VC.db
Binary files differ
diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite
index 3de3c9a..40a8858 100644
--- a/.vs/slnx.sqlite
+++ b/.vs/slnx.sqlite
Binary files differ
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?