Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include <list>
- #include <algorithm>
- #include <string>
- #include <iterator>
- std::string fun (std::string s)
- {
- std::string pom;
- std::remove_copy(s.rbegin(), s.rend(), std::back_inserter(pom), ' ');
- return pom;
- }
- int main ()
- {
- std::cout<<fun("Evo pada kisa");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement