diff options
| author | tafaar <[email protected]> | 2022-10-25 12:51:33 -0700 |
|---|---|---|
| committer | tafaar <[email protected]> | 2022-10-25 12:51:33 -0700 |
| commit | 00aa8db839c44c96d89b59a2c3ff4cb35de5431e (patch) | |
| tree | 704961a6c5d67d15a1fe49c9aad42b7dafdcbd6c /CST116-Ch10-Debugging | |
| parent | Did 3.3 (diff) | |
| download | cst116-ch10-debugging-hill-00aa8db839c44c96d89b59a2c3ff4cb35de5431e.tar.xz cst116-ch10-debugging-hill-00aa8db839c44c96d89b59a2c3ff4cb35de5431e.zip | |
backing up to 3.1
Diffstat (limited to 'CST116-Ch10-Debugging')
| -rw-r--r-- | CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp index b9d106e..042fd0f 100644 --- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp +++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp @@ -63,14 +63,8 @@ * array varZ to -99.
* 2) Build and execute your code, verifying that the calculations
* are correct in relation to element 0 of varZ.
-*
-* Done
-*
* 3) Add a line to assign the contents of the second element of
* varX to 99 in FunctionTwo.
-*
-* Done
-*
* 4) Rebuild your program.
* 5 Obviously there is a problem. Remove the const from the
* function declaration and header for varX.
@@ -151,8 +145,6 @@ void FunctionTwo(const int varX[], const int varY[], int varZ[]) {
for (int x = 0; x < SIZE; x++) // Notice the const SIZE here
varZ[x] = varX[x] + varY[x];
-
- varZ[1] = 99;
}
void PrintFunction(const int varX[20], const int varY[20],
const int varZ[20])
|