From 5800ba1ef3bc958a7fc3b9292428ba95a15c42a6 Mon Sep 17 00:00:00 2001 From: Taylor Rogers Date: Sat, 8 Oct 2022 13:02:09 -0700 Subject: Answered Q6 --- .vs/cst116-ch7-debugging-Taylorrog/v17/.suo | Bin 24064 -> 24064 bytes .../v17/Browse.VC.db | Bin 15200256 -> 15200256 bytes .vs/slnx.sqlite | Bin 331776 -> 331776 bytes CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp | 3 +++ 4 files changed, 3 insertions(+) diff --git a/.vs/cst116-ch7-debugging-Taylorrog/v17/.suo b/.vs/cst116-ch7-debugging-Taylorrog/v17/.suo index fc127d1..5ec7d3e 100644 Binary files a/.vs/cst116-ch7-debugging-Taylorrog/v17/.suo and b/.vs/cst116-ch7-debugging-Taylorrog/v17/.suo differ diff --git a/.vs/cst116-ch7-debugging-Taylorrog/v17/Browse.VC.db b/.vs/cst116-ch7-debugging-Taylorrog/v17/Browse.VC.db index e3603a0..a5ba7d4 100644 Binary files a/.vs/cst116-ch7-debugging-Taylorrog/v17/Browse.VC.db and b/.vs/cst116-ch7-debugging-Taylorrog/v17/Browse.VC.db differ diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite index 7dfaeb4..ea07ab0 100644 Binary files a/.vs/slnx.sqlite and b/.vs/slnx.sqlite differ diff --git a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp index 896b37d..8a7d023 100644 --- a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp +++ b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp @@ -15,6 +15,9 @@ * the value in age is what you typed in. * 5) Step over the if statement. * 6) Why did the value in age change? +* +* "if" statement is set up incorrectly, it changed value of "age" to 1 instead of comparing the input variable "age" to the number 1 +* * 7) Fix the problem and repeat Steps 2 – 5 to verify the * problem was corrected. * 8) Stop debugging. -- cgit v1.2.3