diff options
| author | CEOofOogaBooga <[email protected]> | 2022-10-20 20:06:53 -0700 |
|---|---|---|
| committer | CEOofOogaBooga <[email protected]> | 2022-10-20 20:06:53 -0700 |
| commit | 94a5449b206127b376a76a812b207bd886cda261 (patch) | |
| tree | 33ef3817ad85f9b7b8f00cd4f076fb7e6286b9af | |
| parent | Setting up GitHub Classroom Feedback (diff) | |
| download | cst116-ch10-debugging--trinh--94a5449b206127b376a76a812b207bd886cda261.tar.xz cst116-ch10-debugging--trinh--94a5449b206127b376a76a812b207bd886cda261.zip | |
progress
| -rw-r--r-- | CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp index 1e3d58b..7ec5e14 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 = SIZE;//changed all 5s to SIZE
int main()
{
- int varX[5];
+ int varX[10]; //changed from 5 to 10
int varY[SIZE];
int varZ[SIZE]; // Notice how we used the const here!
@@ -126,7 +126,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[])
|