diff options
| author | Anibal LopezBonilla <[email protected]> | 2022-10-12 22:18:41 -0700 |
|---|---|---|
| committer | Anibal LopezBonilla <[email protected]> | 2022-10-12 22:18:41 -0700 |
| commit | 658821ee4e79a50e178409415b51a81f90118ed6 (patch) | |
| tree | 0df5bc1bcf9667f810bbf40f75cdb748412f07a6 | |
| parent | Push 4 Added Pseudocode file (diff) | |
| download | cst116-chapter8-debugging-lopez-bonilla-658821ee4e79a50e178409415b51a81f90118ed6.tar.xz cst116-chapter8-debugging-lopez-bonilla-658821ee4e79a50e178409415b51a81f90118ed6.zip | |
| -rw-r--r-- | CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp | 4 |
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;
|