aboutsummaryrefslogtreecommitdiff
path: root/CST116F2021-Lab7
diff options
context:
space:
mode:
authorJames Lawrance <[email protected]>2021-11-13 09:25:11 -0800
committerJames Lawrance <[email protected]>2021-11-13 09:25:11 -0800
commit1b7c398e0df1424a379d1e8dd80c9ef5906cf2d3 (patch)
treef3f43372d32d528d9332152be262128944816676 /CST116F2021-Lab7
parentlab 7 completed 11/13/2021 (diff)
downloadcst116-lab7-jemersonlawrance-master.tar.xz
cst116-lab7-jemersonlawrance-master.zip
*forgot 12c outputHEADmaster
lab 7 completed 11/13/21
Diffstat (limited to 'CST116F2021-Lab7')
-rw-r--r--CST116F2021-Lab7/CST116F2021-Lab7.cpp24
-rw-r--r--CST116F2021-Lab7/Output.txt36
2 files changed, 45 insertions, 15 deletions
diff --git a/CST116F2021-Lab7/CST116F2021-Lab7.cpp b/CST116F2021-Lab7/CST116F2021-Lab7.cpp
index b7aa60f..e0731a2 100644
--- a/CST116F2021-Lab7/CST116F2021-Lab7.cpp
+++ b/CST116F2021-Lab7/CST116F2021-Lab7.cpp
@@ -43,28 +43,28 @@
//}
//12c
-//int main()
-//{
+int main()
+{
//initializations
-// string strData[100];
+ string strData[100];
//title and start prompt
-// cout << setw(65) << "--String Reader--\n"
-// << endl;
+ cout << setw(65) << "--String Reader--\n"
+ << endl;
-// cout << "You can enter up to one hundred strings. When finished entering, please type \"done,\" and your strings will display.\n";
+ cout << "You can enter up to one hundred strings. When finished entering, please type \"done,\" and your strings will display.\n";
//get string data
-// getStringData(strData);
+ getStringData(strData);
//display
-// displayStrings(strData);
+ displayStrings(strData);
//find string
-// findString(strData);
+ findString(strData);
//remove string
-// removeString(strData);
+ removeString(strData);
-// return 0;
-//} \ No newline at end of file
+ return 0;
+} \ No newline at end of file
diff --git a/CST116F2021-Lab7/Output.txt b/CST116F2021-Lab7/Output.txt
index e65ca29..eb83489 100644
--- a/CST116F2021-Lab7/Output.txt
+++ b/CST116F2021-Lab7/Output.txt
@@ -1,7 +1,7 @@
James Lawrance Lab 7
---------------------
-11a -
+12a -
output 1 -
--String Reader--
@@ -21,7 +21,7 @@ Enter string #9: done
Watermelon Strawberry
Toffee Cherry
-11b -
+12b -
output 1 -
--String Reader--
@@ -67,4 +67,34 @@ Enter string #3: done
Enter something to find whether it exists as a string or substring in the display: stralia
-"stralia" has been found in the display \ No newline at end of file
+"stralia" has been found in the display
+
+12c -
+output -
+ --String Reader--
+
+You can enter up to one hundred strings. When finished entering, please type "done," and your strings will display.
+Enter string #1: I
+Enter string #2: am
+Enter string #3: not
+Enter string #4: good
+Enter string #5: at
+Enter string #6: c++
+Enter string #7: done
+
+ I am
+ not good
+ at c++
+
+Enter something to find whether it exists as a string or substring in the display: c++
+
+
+"c++" has been found in the display
+
+Enter a string to delete from your display: not
+
+"not" has been deleted.
+
+ I am
+ good at
+ c++ \ No newline at end of file