From 2f170e157fed1edc44162659cfd6db11e33e8786 Mon Sep 17 00:00:00 2001 From: jacobdw22 Date: Sat, 22 Oct 2022 16:59:51 -0700 Subject: simple changes --- CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp | 7 ++++--- cst116-ch10-debugging-wilson-pseudo-code.txt | 0 cst116-ch10-debugging-wilson.txt | 0 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 cst116-ch10-debugging-wilson-pseudo-code.txt create mode 100644 cst116-ch10-debugging-wilson.txt diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp index 1e3d58b..14549a5 100644 --- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp +++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp @@ -84,11 +84,11 @@ void FunctionTwo(const int varX[], const int varY[], int varZ[]); void PrintFunction(const int varX[], const int varY[], const int varZ[]); -const int SIZE = 5; +const int SIZE = 10; int main() { - int varX[5]; + int varX[SIZE]; int varY[SIZE]; int varZ[SIZE]; // Notice how we used the const here! @@ -100,6 +100,7 @@ int main() // Breakpoint 3 // Put breakpoint on the following line FunctionTwo(varX, varY, varZ); + varZ[0] = { -99 }; PrintFunction(varX, varY, varZ); return 0; @@ -126,7 +127,7 @@ void FunctionOne(int varX[], int varY[]) // Put breakpoint on the following line varX[x] = x; - for (int x = 0; x < 5; x++) + for (int x = 0; x < SIZE; x++) varY[x] = x + 100; } void FunctionTwo(const int varX[], const int varY[], int varZ[]) diff --git a/cst116-ch10-debugging-wilson-pseudo-code.txt b/cst116-ch10-debugging-wilson-pseudo-code.txt new file mode 100644 index 0000000..e69de29 diff --git a/cst116-ch10-debugging-wilson.txt b/cst116-ch10-debugging-wilson.txt new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3