aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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++)