mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 06:06:00 -06:00
31 lines
426 B
C++
31 lines
426 B
C++
#include <iostream>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
using std::istream;
|
|
using std::string;
|
|
using std::vector;
|
|
using std::cin;
|
|
|
|
istream& read_words(istream& input_stream, vector<string>& words)
|
|
{
|
|
words.clear();
|
|
|
|
string word;
|
|
|
|
while (input_stream >> word)
|
|
{
|
|
words.push_back(word);
|
|
}
|
|
|
|
return input_stream;
|
|
}
|
|
|
|
int main()
|
|
{
|
|
vector<string> words;
|
|
|
|
read_words(cin, words);
|
|
|
|
return 0;
|
|
}
|