aboutsummaryrefslogtreecommitdiffstats
path: root/ee1301/wk5
diff options
context:
space:
mode:
authorRossTheRoss <msattr@gmail.com>2019-04-04 19:46:47 -0500
committerRossTheRoss <msattr@gmail.com>2019-04-04 19:46:47 -0500
commit62d8614daa16e89efe1ba16be1e19e001f13fc53 (patch)
treea2f46dd16b5262877493e08479da038997b9e3d6 /ee1301/wk5
parent?? (diff)
downloadhomework-62d8614daa16e89efe1ba16be1e19e001f13fc53.tar
homework-62d8614daa16e89efe1ba16be1e19e001f13fc53.tar.gz
homework-62d8614daa16e89efe1ba16be1e19e001f13fc53.tar.bz2
homework-62d8614daa16e89efe1ba16be1e19e001f13fc53.tar.lz
homework-62d8614daa16e89efe1ba16be1e19e001f13fc53.tar.xz
homework-62d8614daa16e89efe1ba16be1e19e001f13fc53.tar.zst
homework-62d8614daa16e89efe1ba16be1e19e001f13fc53.zip
???
Diffstat (limited to '')
-rw-r--r--ee1301/wk5/hw5_directory/strap012_HW5C.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ee1301/wk5/hw5_directory/strap012_HW5C.cpp b/ee1301/wk5/hw5_directory/strap012_HW5C.cpp
index 6156838..b2505e1 100644
--- a/ee1301/wk5/hw5_directory/strap012_HW5C.cpp
+++ b/ee1301/wk5/hw5_directory/strap012_HW5C.cpp
@@ -56,9 +56,9 @@ void getInput(int input[SIZE][SIZE]) {
// oldArray: Array generated in getInput of SIZE
// newArray: Array of same dimensions and data
void makeNewArray(int oldArray[SIZE][SIZE], int newArray[SIZE][SIZE]) {
- for (int row = 0; row < SIZE-1; row++) {
- for (int column = 0; column < SIZE-1; column++) {
- newArray[row+3][column] = oldArray[row][column];
+ for (int row = 0; row < maxRow-1; row++) {
+ for (int column = 0; column < maxColumn-1; column++) {
+ newArray[row][column] = oldArray[row][column];
}
}
}