aboutsummaryrefslogtreecommitdiff
path: root/project3/project3.h
diff options
context:
space:
mode:
Diffstat (limited to 'project3/project3.h')
-rw-r--r--project3/project3.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/project3/project3.h b/project3/project3.h
new file mode 100644
index 0000000..4215a38
--- /dev/null
+++ b/project3/project3.h
@@ -0,0 +1,22 @@
+#pragma once
+#include <string>
+
+const int MATRIX_SIZE = 3;
+
+void menu(int choice, float m1[MATRIX_SIZE][MATRIX_SIZE], float m2[MATRIX_SIZE][MATRIX_SIZE]);
+
+void getMatricies(float m1[MATRIX_SIZE][MATRIX_SIZE], float m2[MATRIX_SIZE][MATRIX_SIZE]);
+
+void getMatrix(float mat[MATRIX_SIZE][MATRIX_SIZE]);
+
+void addMatrix(float m1[MATRIX_SIZE][MATRIX_SIZE], float m2[MATRIX_SIZE][MATRIX_SIZE]);
+
+void multiplyMatrix(float m1[MATRIX_SIZE][MATRIX_SIZE], float m2[MATRIX_SIZE][MATRIX_SIZE]);
+
+float calulateDotProduct(int x, int y, float m1[MATRIX_SIZE][MATRIX_SIZE], float m2[MATRIX_SIZE][MATRIX_SIZE]);
+
+int readInt(const std::string& question, const std::string& error);
+
+float readFloat(const std::string& question, const std::string& error);
+
+void printMatrix(float mat[MATRIX_SIZE][MATRIX_SIZE]);