From 00aa8db839c44c96d89b59a2c3ff4cb35de5431e Mon Sep 17 00:00:00 2001 From: tafaar Date: Tue, 25 Oct 2022 12:51:33 -0700 Subject: backing up to 3.1 --- CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp | 8 -------- 1 file changed, 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]) -- cgit v1.2.3