aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorabd00l4h <[email protected]>2022-10-12 20:59:06 -0700
committerGitHub <[email protected]>2022-10-12 20:59:06 -0700
commit9331b0e12ed8ecc28f763d1b2ea22896a5e5bd96 (patch)
tree495b4972b36178583deeabe0d8af892ccfc495c8
parentAdd files via upload (diff)
downloadcst116-ch7-debugging-abd00l4h-9331b0e12ed8ecc28f763d1b2ea22896a5e5bd96.tar.xz
cst116-ch7-debugging-abd00l4h-9331b0e12ed8ecc28f763d1b2ea22896a5e5bd96.zip
Update CST116-Ch7-Havaldar.cppHEADmain
-rw-r--r--CST116-Ch7-Debugging/CST116-Ch7-Havaldar.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/CST116-Ch7-Debugging/CST116-Ch7-Havaldar.cpp b/CST116-Ch7-Debugging/CST116-Ch7-Havaldar.cpp
index 100454d..0fdecdc 100644
--- a/CST116-Ch7-Debugging/CST116-Ch7-Havaldar.cpp
+++ b/CST116-Ch7-Debugging/CST116-Ch7-Havaldar.cpp
@@ -15,7 +15,7 @@
* 6) Why did the value in age change?
* The evaluation in the if statement makes it so that age is set to 1 and doesn't check if age is 1
* basically do "==" not "="
-* 7) Fix the problem and repeat Steps 2 � 5 to verify the
+* 7) Fix the problem and repeat Steps 2 – 5 to verify the
* problem was corrected.
* 8) Stop debugging.
*
@@ -28,8 +28,9 @@
* 4) Verify that 25 is still stored in age.
* 5) Step over the else if.
* 6) Why is the program going to print "Teenager" for an age of 25?
-* If the age is greater than equal to 12 or less than equal 19 it will classify the age as teenager. It should be if age is greater than equal to 12 and less than equal to 19
-* 7) Fix the problem and repeat Steps 1 � 5 to verify the
+* If the age is greater than equal to 12 or less than equal 19 it will classify the age as teenager. It should be if age is greater than equal to 12
+ and less than equal to 19
+* 7) Fix the problem and repeat Steps 1 – 5 to verify the
* problem was corrected.
* 8) Stop debugging.
* 9) Remove Breakpoint1.
@@ -75,4 +76,4 @@ int main()
cout << "Adult" << endl;
}
return 0;
-} \ No newline at end of file
+}