fork download
  1. #include <iostream>
  2. #include <iterator>
  3. #include <vector>
  4. #include <algorithm>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. vector<char> myvec;
  10.  
  11. cin >> noskipws;
  12. copy( istream_iterator<char>( cin ), istream_iterator<char>(), back_inserter( myvec ) );
  13.  
  14. for ( char c : myvec )
  15. {
  16. cout << '"' << c << '"' << endl;
  17. }
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0s 3276KB
stdin
pit b ull
stdout
"p"
"i"
"t"
" "
"b"
" "
"u"
"l"
"l"