aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorgan Cyrus <[email protected]>2022-10-30 11:21:51 -0700
committerMorgan Cyrus <[email protected]>2022-10-30 11:21:51 -0700
commit6216f06109a6cf0c20fce311b4e3203ede4d6adf (patch)
treeb10185f931fb3427817fda0697d210d835499471
parentexercise 2 finished (diff)
downloadcst116-ch10-debugging-cyrus-6216f06109a6cf0c20fce311b4e3203ede4d6adf.tar.xz
cst116-ch10-debugging-cyrus-6216f06109a6cf0c20fce311b4e3203ede4d6adf.zip
varZ[0] = -99;
-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;