diff options
Diffstat (limited to 'CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp')
| -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;
|