aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp
diff options
context:
space:
mode:
authorJoe Traver <[email protected]>2022-10-26 17:57:30 -0700
committerJoe Traver <[email protected]>2022-10-26 17:57:30 -0700
commitf1d82f3473e8e186865e3fc0f64ab86cc3a0465e (patch)
tree357c83114a5149a6e885ca418632f953a21ee982 /CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp
parentMade the Exercise 3 changes. Still problems with compiling (diff)
downloadcst116-ch10-debugging-joetraver30-f1d82f3473e8e186865e3fc0f64ab86cc3a0465e.tar.xz
cst116-ch10-debugging-joetraver30-f1d82f3473e8e186865e3fc0f64ab86cc3a0465e.zip
Fixed Exercise 3
Diffstat (limited to 'CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp')
-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 8d9b7c8..c243fd0 100644
--- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp
+++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp
@@ -80,7 +80,7 @@ using std::setw;
void GetAndDisplayWelcomeInfo();
void FunctionOne(int varX[], int varY[]);
-void FunctionTwo(const int varX[], const int varY[], int varZ[]);
+void FunctionTwo( int varX[], const int varY[], int varZ[]);
void PrintFunction(const int varX[20], const int varY[20],
const int varZ[20]);
@@ -135,10 +135,12 @@ void FunctionOne(int varX[], int varY[])
varY[x] = x + 100;
}
void FunctionTwo( int varX[], const int varY[], int varZ[])
+
{
varX[1] = 99;
for (int x = 0; x < SIZE; x++) // Notice the const SIZE here
varZ[x] = varX[x] + varY[x];
+
}
void PrintFunction(const int varX[20], const int varY[20],