From 82247f0cde9cc01ecaa7266cf657cbeeec4f85a8 Mon Sep 17 00:00:00 2001 From: Kai Date: Wed, 26 Oct 2022 17:37:59 -0700 Subject: fixed the for loop --- CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp') 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; -- cgit v1.2.3