aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraustinsworld15 <[email protected]>2021-12-08 13:35:42 -0800
committerGitHub <[email protected]>2021-12-08 13:35:42 -0800
commitff9db483bafb69f7a9d89be5ddc682d511531910 (patch)
treee36155ff826b00ea74f4e7eb5d7ad5a41f95e5b1
parentUpdate Project_3_Voids.h (diff)
downloadcst116-proj3-austinsworld15-ff9db483bafb69f7a9d89be5ddc682d511531910.tar.xz
cst116-proj3-austinsworld15-ff9db483bafb69f7a9d89be5ddc682d511531910.zip
Update Project_3_Functions.cpp
-rw-r--r--CST116F2021-Proj3/Project_3_Functions.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/CST116F2021-Proj3/Project_3_Functions.cpp b/CST116F2021-Proj3/Project_3_Functions.cpp
index 64f749c..aa8bee8 100644
--- a/CST116F2021-Proj3/Project_3_Functions.cpp
+++ b/CST116F2021-Proj3/Project_3_Functions.cpp
@@ -3,12 +3,17 @@
using namespace std;
+
+//This function is only to display the menu
+void Menu()
+{
+ cout << "----------------------------------------------------------------------\n\nThis program will ask you for a matrix and will either:\n\n1. Process and display a matrix\n\n2. Add a matrix\n\n3. Multiply a matrix\n\n4. Exit the program\n\nInput the corresponding number to make a choice\n\n----------------------------------------------------------------------\n\nYour choice is:\n\n";
+}
+
//This funtion will process the choice inputted from the user
void ProcessChoice(int& choice)
{
- cout << "\nIn This program, you are given the choice to either:\n\n1. Add a matrix\n\n2. Multiply a matrix\n\n3. Exit the program\n\nInput the corresponding number to make a choice\n\n";
cin >> choice;
-
}
//This function is only used to record a matrix, but won't be used because the individual functions will ask for a matrix anyways. This function is only to record and display back, and not to use