blob: c03ef4ec83cee22606aaddb94bf3630252e1a331 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#include "Header.h"
//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()
{
//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);
}
|