aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp
diff options
context:
space:
mode:
authorKai <[email protected]>2022-10-26 17:37:59 -0700
committerKai <[email protected]>2022-10-26 17:37:59 -0700
commit82247f0cde9cc01ecaa7266cf657cbeeec4f85a8 (patch)
tree37bb5331efcb442a52518702fd1d5f8bc65a68e0 /CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp
parentchange the vars (diff)
downloadcst116-ch10-debugging-cobrakai2-main.tar.xz
cst116-ch10-debugging-cobrakai2-main.zip
fixed the for loopHEADmain
Diffstat (limited to 'CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp')
-rw-r--r--CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp
index c9d194e..b0b4752 100644
--- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp
+++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp
@@ -121,7 +121,7 @@ void GetAndDisplayWelcomeInfo()
}
void FunctionOne(int varX[], int varY[])
{
- for (int x = 0; x < SIZE; x++) // NOTICE '<' NOT <=
+ for (int x = 0; x == 8; x++) // NOTICE '<' NOT <=
// Breakpoint 4
// Put breakpoint on the following line
varX[x] = x;