From d179419bf95449ea8075d7b497f2f17da69ea369 Mon Sep 17 00:00:00 2001 From: prestonderek Date: Fri, 21 Oct 2022 10:26:29 -0700 Subject: added the assignment statement for varZ in exercise 3 --- CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'CST116-Ch10-Debugging') diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp index b7a6604..590cb43 100644 --- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp +++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp @@ -100,6 +100,9 @@ int main() // Breakpoint 3 // Put breakpoint on the following line FunctionTwo(varX, varY, varZ); + + varZ[1] = -99; + PrintFunction(varX, varY, varZ); return 0; @@ -139,7 +142,6 @@ void PrintFunction(const int varX[20], const int varY[20], const int varZ[20]) { int x; - cout << " \t x \t y \t z\n\n"; for (x = 0; x < SIZE; x++) -- cgit v1.2.3