diff options
Diffstat (limited to 'CST116F2021-Proj3/Project_3_Functions.cpp')
| -rw-r--r-- | CST116F2021-Proj3/Project_3_Functions.cpp | 9 |
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 |