diff options
| author | Connor McDowell <[email protected]> | 2024-02-15 14:20:49 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-02-15 14:20:49 -0800 |
| commit | 68b4f58eec70782a4b453541c042b76f284d31a8 (patch) | |
| tree | 789a03990baaeae00cb987a715a93d5701be8aca | |
| parent | following lecture again (diff) | |
| download | in-class-exercise-11-connormcdowell275-68b4f58eec70782a4b453541c042b76f284d31a8.tar.xz in-class-exercise-11-connormcdowell275-68b4f58eec70782a4b453541c042b76f284d31a8.zip | |
notes cont
| -rw-r--r-- | Project1/program.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Project1/program.cpp b/Project1/program.cpp index d40eeb1..212d73f 100644 --- a/Project1/program.cpp +++ b/Project1/program.cpp @@ -18,7 +18,7 @@ constexpr size_t COLUMN = 4; int matrix[3][4]{ {1,2,3,4}, {5,6,7,8}, {9,10,11,12} }; -int print2DArray(int(&matrix)[3][4]) +int print2DArray(int(&matrix)[ROW][COLUMN]) { for (auto i = 0u; i < ROW; ++i) { @@ -35,6 +35,11 @@ int main() print2DArray(matrix); + matrix[0][0] = 10; + matrix[1][0] = 50; + matrix[2][0] = 90; + + print2DArray(matrix); return 0; }
\ No newline at end of file |