From 3c28d882f65ca8faa9f4d26e627b407a8e5554ac Mon Sep 17 00:00:00 2001 From: austinsworld15 <91639488+austinsworld15@users.noreply.github.com> Date: Wed, 8 Dec 2021 13:17:57 -0800 Subject: Update and rename CST116F2021-Proj3.cpp to Project 3.cpp --- CST116F2021-Proj3/Project 3.cpp | 62 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 CST116F2021-Proj3/Project 3.cpp (limited to 'CST116F2021-Proj3/Project 3.cpp') 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 + +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; + } + +} -- cgit v1.2.3