From ff9db483bafb69f7a9d89be5ddc682d511531910 Mon Sep 17 00:00:00 2001 From: austinsworld15 <91639488+austinsworld15@users.noreply.github.com> Date: Wed, 8 Dec 2021 13:35:42 -0800 Subject: Update Project_3_Functions.cpp --- CST116F2021-Proj3/Project_3_Functions.cpp | 9 +++++++-- 1 file 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 -- cgit v1.2.3