Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iterator>
- #include <algorithm>
- #include <vector>
- int main()
- {
- std::vector<std::string> v;
- std::copy(
- std::istream_iterator<std::string>(std::cin),
- std::istream_iterator<std::string>(),
- std::back_inserter(v)
- );
- std::copy(
- v.begin(),
- v.end(),
- std::ostream_iterator<std::string>(std::cout, " ")
- );
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement