Advertisement
amermo

Samostalni 4 - Z26

Mar 25th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. void TransformirajString(std::string &s)
  5. {
  6.     for(auto &x : s)
  7.         x+=1;
  8. }
  9.  
  10. int main()
  11. {
  12.     std::string s{"PROBA"};
  13.     TransformirajString(s);
  14.     std::cout << s;
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement