blob: e0731a27c326bdc2ad147aa5cfb3a17df7f37a62 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
#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);
//}
//12c
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);
//remove string
removeString(strData);
return 0;
}
|