aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp3
1 files changed, 3 insertions, 0 deletions
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;