From 6216f06109a6cf0c20fce311b4e3203ede4d6adf Mon Sep 17 00:00:00 2001 From: Morgan Cyrus Date: Sun, 30 Oct 2022 11:21:51 -0700 Subject: varZ[0] = -99; --- CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp index 8039704..d02ceb3 100644 --- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp +++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp @@ -90,6 +90,7 @@ * 1) Just before the call to the PrintFunction in main, add an * assignment statement to change the first element in the * array varZ to -99. +* * 2) Build and execute your code, verifying that the calculations * are correct in relation to element 0 of varZ. * 3) Add a line to assign the contents of the second element of @@ -140,6 +141,8 @@ int main() // Breakpoint 3 // Put breakpoint on the following line FunctionTwo(varX, varY, varZ); + + varZ[0] = -99; PrintFunction(varX, varY, varZ); return 0; -- cgit v1.2.3