aboutsummaryrefslogtreecommitdiff
path: root/project3/project3.h
diff options
context:
space:
mode:
authorJacobAKnox <[email protected]>2021-12-03 11:51:11 -0800
committerJacobAKnox <[email protected]>2021-12-03 11:51:11 -0800
commitd0a97a57807fce1dbd093a96837bfd93120b141c (patch)
tree6574bc670bbb44a864aa57eb84e4784734393d6b /project3/project3.h
parentAdd online IDE url (diff)
downloadcst116-proj3-jacobaknox-master.tar.xz
cst116-proj3-jacobaknox-master.zip
project3 uploadHEADmaster
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]);