Advertisement
sellmmaahh

t7-zad4

Apr 26th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include<iostream>
  2. #include <list>
  3. #include <algorithm>
  4. #include <string>
  5. #include <iterator>
  6.  
  7. std::string fun (std::string s)
  8. {
  9.     std::string pom;
  10.     std::remove_copy(s.rbegin(), s.rend(), std::back_inserter(pom), ' ');
  11.     return pom;
  12. }
  13.  
  14. int main ()
  15. {
  16.     std::cout<<fun("Evo pada kisa");
  17.     return 0;
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement