Advertisement
kenpusney

stream_iter.cpp

Nov 24th, 2022 (edited)
493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <iostream>
  2. #include <iterator>
  3. #include <algorithm>
  4. #include <string>
  5.  
  6. using namespace std;
  7.  
  8. int main() {
  9.   copy(istream_iterator<string>{cin},
  10.        istream_iterator<string>{},
  11.        ostream_iterator<string>{cout, "\n"});
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement