aboutsummaryrefslogtreecommitdiff
path: root/CST116F2021-Proj3/Project 3.cpp
blob: f348ee04993c32147a3dc98fb37e1d0064ccbe0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#include "Project_3_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;

	Menu();

	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;
	}
}