aboutsummaryrefslogtreecommitdiff
path: root/CST116F2021-Proj3/Project 3.cpp
diff options
context:
space:
mode:
authoraustinsworld15 <[email protected]>2021-12-08 13:17:57 -0800
committerGitHub <[email protected]>2021-12-08 13:17:57 -0800
commit3c28d882f65ca8faa9f4d26e627b407a8e5554ac (patch)
treec0ad5fb40615c3e02a47a000213f83dce375486e /CST116F2021-Proj3/Project 3.cpp
parentDelete Voids.h (diff)
downloadarchived-cst116-proj3-austinsworld15-3c28d882f65ca8faa9f4d26e627b407a8e5554ac.tar.xz
archived-cst116-proj3-austinsworld15-3c28d882f65ca8faa9f4d26e627b407a8e5554ac.zip
Update and rename CST116F2021-Proj3.cpp to Project 3.cpp
Diffstat (limited to 'CST116F2021-Proj3/Project 3.cpp')
-rw-r--r--CST116F2021-Proj3/Project 3.cpp62
1 files changed, 62 insertions, 0 deletions
diff --git a/CST116F2021-Proj3/Project 3.cpp b/CST116F2021-Proj3/Project 3.cpp
new file mode 100644
index 0000000..57cde22
--- /dev/null
+++ b/CST116F2021-Proj3/Project 3.cpp
@@ -0,0 +1,62 @@
+#include "Voids.h"
+#include <iostream>
+
+int main()
+{
+ int choice = 0;
+
+ int row1 = 0;
+ int column1 = 0;
+ int row2 = 0;
+ int column2 = 0;
+ int i = 0;
+ int j = 0;
+ int k = 0;
+
+ int rowa1 = 0;
+ int columna1 = 0;
+ int rowa2 = 0;
+ int columna2 = 0;
+ int ia = 0;
+ int ja = 0;
+ int ka = 0;
+
+ int rowM1 = 0;
+ int columnM1 = 0;
+ int rowM2 = 0;
+ int columnM2 = 0;
+ int iM = 0;
+ int jM = 0;
+
+ ProcessChoice(choice);
+
+ if (choice == 1)
+ {
+ GetMatrix(rowM1, columnM1, rowM2, columnM2, iM, jM);
+ cout << "\n\nThe program is now finished, exitting\n\n\n\n";
+ return 0;
+ }
+ else if (choice == 2)
+ {
+ MultiplyMatrix(row1, column1, row2, column2, i, j, k);
+ cout << "\n\nThe program is now finished, exitting\n\n\n\n";
+ return 0;
+ }
+ else if (choice == 3)
+ {
+ AddMatrix(rowa1, columna1, rowa2, columna2, ia, ja, ka);
+ cout << "\n\nThe program is now finished, exitting\n\n\n\n";
+ return 0;
+ }
+ else if (choice == 4)
+ {
+ cout << "\n\nYou have chosen to exit, now exitting\n\n\n\n";
+ return 0;
+ }
+ else
+ {
+ cout << "\n\nYou have inputted the wrong number, please run the program again\n\n\n\n";
+ return 0;
+ }
+
+}