aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnibal LopezBonilla <[email protected]>2022-10-12 22:18:41 -0700
committerAnibal LopezBonilla <[email protected]>2022-10-12 22:18:41 -0700
commit658821ee4e79a50e178409415b51a81f90118ed6 (patch)
tree0df5bc1bcf9667f810bbf40f75cdb748412f07a6
parentPush 4 Added Pseudocode file (diff)
downloadcst116-chapter8-debugging-lopez-bonilla-main.tar.xz
cst116-chapter8-debugging-lopez-bonilla-main.zip
Added comments Final PushHEADmain
-rw-r--r--CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
index b1f423e..190d815 100644
--- a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
+++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
@@ -72,11 +72,15 @@ int main()
// Breakpoint 1
// Put a breakpoint on the following line
+
+ //While the variable i is less than 10 continue to count.
while (i < 10)
cout << i++ << endl;
+
// Breakpoint 2
// Put a breakpoint on the following line
+ //the counting occurs here in this for loop
for (count = 0; count < 10; count++)
cout << count << endl;