diff options
| author | Taylor Rogers <[email protected]> | 2022-10-25 20:28:38 -0700 |
|---|---|---|
| committer | Taylor Rogers <[email protected]> | 2022-10-25 20:28:38 -0700 |
| commit | d497d400118b1c6e7ffa35f52459311ea2d59333 (patch) | |
| tree | 7ba04ab9f766575df298264332ddd0e17be44a8c /CST116-Ch10-Debugging | |
| parent | Changed SIZE to 10 (diff) | |
| download | cst116-ch10-debugging-taylorrog-d497d400118b1c6e7ffa35f52459311ea2d59333.tar.xz cst116-ch10-debugging-taylorrog-d497d400118b1c6e7ffa35f52459311ea2d59333.zip | |
changed 5's to SIZE
Diffstat (limited to 'CST116-Ch10-Debugging')
| -rw-r--r-- | CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp index 7cc5053..0a9643e 100644 --- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp +++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp @@ -91,7 +91,7 @@ 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!
@@ -129,7 +129,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[])
|