aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprestonderek <[email protected]>2022-10-21 10:26:29 -0700
committerprestonderek <[email protected]>2022-10-21 10:26:29 -0700
commitd179419bf95449ea8075d7b497f2f17da69ea369 (patch)
tree961ccd33f5d7a7137c0c489dda4ce62040d0a11a
parentverified results at end of exercise two. (diff)
downloadcst116-ch10-debugging-prestonderek-d179419bf95449ea8075d7b497f2f17da69ea369.tar.xz
cst116-ch10-debugging-prestonderek-d179419bf95449ea8075d7b497f2f17da69ea369.zip
added the assignment statement for varZ in exercise 3
-rw-r--r--CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp
index b7a6604..590cb43 100644
--- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp
+++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp
@@ -100,6 +100,9 @@ int main()
// Breakpoint 3
// Put breakpoint on the following line
FunctionTwo(varX, varY, varZ);
+
+ varZ[1] = -99;
+
PrintFunction(varX, varY, varZ);
return 0;
@@ -139,7 +142,6 @@ void PrintFunction(const int varX[20], const int varY[20],
const int varZ[20])
{
int x;
-
cout << " \t x \t y \t z\n\n";
for (x = 0; x < SIZE; x++)