Advertisement
sellmmaahh

tut7-zad4

Jul 24th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <cstring>
  2. #include <iostream>
  3.  
  4. #include <algorithm>
  5. using namespace std;
  6.  
  7.  
  8. string ObrniString (string s)
  9. { string pom;
  10.     remove_copy(s.rbegin(),s.rend(), back_inserter(pom),' ');
  11.     return pom;
  12. }
  13. int main ()
  14. {
  15.     cout<<ObrniString("Selma je bila ovdje.");
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement