aboutsummaryrefslogtreecommitdiff
path: root/CST116F2021-Lab7/CST116F2021-Lab7_Schroeder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CST116F2021-Lab7/CST116F2021-Lab7_Schroeder.cpp')
-rw-r--r--CST116F2021-Lab7/CST116F2021-Lab7_Schroeder.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/CST116F2021-Lab7/CST116F2021-Lab7_Schroeder.cpp b/CST116F2021-Lab7/CST116F2021-Lab7_Schroeder.cpp
index a3ea111..c036c72 100644
--- a/CST116F2021-Lab7/CST116F2021-Lab7_Schroeder.cpp
+++ b/CST116F2021-Lab7/CST116F2021-Lab7_Schroeder.cpp
@@ -21,6 +21,8 @@ int item = 0;
int main()
{
+ cout << "*\t\t\tThis program will build an array of strings.\t\t\t* \n*\t\t\tChoose one of the 5 options to get started:\t\t\t*\n";
+ cout << "*****************************************************************************************\n";
menu(item);
}
@@ -29,7 +31,7 @@ int main()
void menu(int& item)
{
int menuChoice = 0;
- cout << "MENU: 1) Add a string 2) Print out 3) Find subString 4) Delete a string 5) Exit ...";
+ cout << "MENU: 1) Add a string 2) Print out 3) Find subString 4) Delete a string 5) Exit \n";
cin >> menuChoice;
if (cin.fail())
@@ -46,7 +48,9 @@ void menu(int& item)
cin >> menuChoice;
}
}
-
+
+
+
switch (menuChoice)
{
@@ -72,7 +76,7 @@ void menu(int& item)
}
case 5:
{
- cout << "Thankyou, Goodbye!!\n\n";
+ cout << "\n\tThankyou, Goodbye!!\n\n";
break;
}