aboutsummaryrefslogtreecommitdiff
path: root/Project1/program.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project1/program.cpp')
-rw-r--r--Project1/program.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/Project1/program.cpp b/Project1/program.cpp
new file mode 100644
index 0000000..510e775
--- /dev/null
+++ b/Project1/program.cpp
@@ -0,0 +1,37 @@
+// Name: Connor McDowell
+// date: 2/12/2024
+// class: CST116
+// reason: inclass exercise 11, 2d arrays
+
+#include <iostream>
+#include <ostream>
+
+//#define ROW 3
+//#define COLUMN 4
+//
+//using std::cin;
+//using std::cout;
+//using std::endl;
+//
+//int matrix[ROW][COLUMN]{ {1,2,3,4}, {5,6,7,8}, {9,10,11,12} };
+//
+//int print2DArray(int(&matrix)[ROW]{COLUMN})
+//{
+// for (auto i = 0u; i < ROW; ++i)
+// {
+// for (auto j = 0u; j < COLUMN; ++j)
+// {
+// cout << matrix[i][j] << " ";
+// }
+// }
+// return 0;
+//}
+//
+//int main()
+//{
+//
+// print2DArray(matrix);
+//
+//
+// return 0;
+//} \ No newline at end of file