aboutsummaryrefslogtreecommitdiffstats
path: root/ee1301/wk5/hw5_directory
diff options
context:
space:
mode:
Diffstat (limited to 'ee1301/wk5/hw5_directory')
-rw-r--r--ee1301/wk5/hw5_directory/strap012_HW5C.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ee1301/wk5/hw5_directory/strap012_HW5C.cpp b/ee1301/wk5/hw5_directory/strap012_HW5C.cpp
index 3fd91d1..861fbbb 100644
--- a/ee1301/wk5/hw5_directory/strap012_HW5C.cpp
+++ b/ee1301/wk5/hw5_directory/strap012_HW5C.cpp
@@ -58,7 +58,7 @@ void getInput(int input[SIZE][SIZE]) {
void makeNewArray(int oldArray[SIZE][SIZE], int newArray[SIZE][SIZE]) {
for (int row = -1; row < maxRow; row++) {
for (int column = -1; column < maxColumn; column++) {
- newArray[row][column] = oldArray[row-1][column];
+ newArray[row][column] = oldArray[row][column];
}
}
}