blob: 23ddb83abc90140c70a2e34c09fc10f35d28952b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include <iostream>
#include <string>
#include <vector>
using std::string;
using std::vector;
using std::cin;
using std::cout;
using std::endl;
int main(int argc, char **argv)
{
string word;
vector<string> text;
while (cin >> word)
text.push_back(word);
for (vector<string>::const_iterator iter = text.begin(); iter != text.end(); ++iter)
cout << *iter << endl;
return 0;
}
|