aboutsummaryrefslogtreecommitdiff
path: root/CST116F2021-Lab7/CST116F2021-Lab7.cpp
diff options
context:
space:
mode:
authorJames Lawrance <[email protected]>2021-11-12 12:10:08 -0800
committerJames Lawrance <[email protected]>2021-11-12 12:10:08 -0800
commitbd0aaa8aec690233421775b156b7ccd151ee3947 (patch)
treef87f99d24fba0bb13ece594c06af06a27684272e /CST116F2021-Lab7/CST116F2021-Lab7.cpp
parentAdd online IDE url (diff)
downloadcst116-lab7-jemersonlawrance-bd0aaa8aec690233421775b156b7ccd151ee3947.tar.xz
cst116-lab7-jemersonlawrance-bd0aaa8aec690233421775b156b7ccd151ee3947.zip
11b complete
Diffstat (limited to 'CST116F2021-Lab7/CST116F2021-Lab7.cpp')
-rw-r--r--CST116F2021-Lab7/CST116F2021-Lab7.cpp55
1 files changed, 39 insertions, 16 deletions
diff --git a/CST116F2021-Lab7/CST116F2021-Lab7.cpp b/CST116F2021-Lab7/CST116F2021-Lab7.cpp
index 77b01eb..c03ef4e 100644
--- a/CST116F2021-Lab7/CST116F2021-Lab7.cpp
+++ b/CST116F2021-Lab7/CST116F2021-Lab7.cpp
@@ -1,20 +1,43 @@
-// CST116F2021-Lab7.cpp : This file contains the 'main' function. Program execution begins and ends there.
-//
+#include "Header.h"
-#include <iostream>
+//12a
+//int main()
+//{
+ //initializations
+// string strData[100];
+// int cnt = 1;
+ //title and prompt
+// 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";
+
+ //get string data
+// getStringData(strData, cnt);
+
+ //display
+// displayStrings(strData, cnt);
+//}
+
+//12b
int main()
{
- std::cout << "Hello World!\n";
-}
-
-// Run program: Ctrl + F5 or Debug > Start Without Debugging menu
-// Debug program: F5 or Debug > Start Debugging menu
-
-// Tips for Getting Started:
-// 1. Use the Solution Explorer window to add/manage files
-// 2. Use the Team Explorer window to connect to source control
-// 3. Use the Output window to see build output and other messages
-// 4. Use the Error List window to view errors
-// 5. Go to Project > Add New Item to create new code files, or Project > Add Existing Item to add existing code files to the project
-// 6. In the future, to open this project again, go to File > Open > Project and select the .sln file
+ //initializations
+ string strData[100];
+
+ //title and start prompt
+ 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";
+
+ //get string data
+ getStringData(strData);
+
+ //display
+ displayStrings(strData);
+
+ //find string
+ findString(strData);
+} \ No newline at end of file