aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor Rogers <[email protected]>2022-10-26 08:29:52 -0700
committerTaylor Rogers <[email protected]>2022-10-26 08:29:52 -0700
commite5e5fb7db17e6232394d37ac030e995836fab3da (patch)
treef4f9b299ff520990ebb629676ecf696eb70577e7
parentCompleted exercise 2 (diff)
downloadcst116-ch10-debugging-taylorrog-e5e5fb7db17e6232394d37ac030e995836fab3da.tar.xz
cst116-ch10-debugging-taylorrog-e5e5fb7db17e6232394d37ac030e995836fab3da.zip
changed first element of varZ to -99
-rw-r--r--CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp
index 4aec42e..7689bbc 100644
--- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp
+++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp
@@ -58,6 +58,9 @@
* array varZ to -99.
* 2) Build and execute your code, verifying that the calculations
* are correct in relation to element 0 of varZ.
+*
+* Done
+*
* 3) Add a line to assign the contents of the second element of
* varX to 99 in FunctionTwo.
* 4) Rebuild your program.
@@ -106,6 +109,7 @@ int main()
// Breakpoint 3
// Put breakpoint on the following line
FunctionTwo(varX, varY, varZ);
+ varZ[0]=-99;
PrintFunction(varX, varY, varZ);
return 0;