diff options
| author | tafaar <[email protected]> | 2022-10-25 12:49:24 -0700 |
|---|---|---|
| committer | tafaar <[email protected]> | 2022-10-25 12:49:24 -0700 |
| commit | 27ec8182e7310927376eb2e41df2f1a2be8e93a8 (patch) | |
| tree | 597e61261b05e59b131e66bfe0c6e5f48df2fddb | |
| parent | did exercise 2 (diff) | |
| download | cst116-ch10-debugging-hill-27ec8182e7310927376eb2e41df2f1a2be8e93a8.tar.xz cst116-ch10-debugging-hill-27ec8182e7310927376eb2e41df2f1a2be8e93a8.zip | |
did 3.2
| -rw-r--r-- | CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp | 4 |
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 605df11..3a50611 100644 --- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp +++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp @@ -63,6 +63,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.
@@ -111,6 +114,7 @@ int main() // Breakpoint 3
// Put breakpoint on the following line
FunctionTwo(varX, varY, varZ);
+ varZ[0] = -99;
PrintFunction(varX, varY, varZ);
return 0;
|