Advertisement
wheeler

Untitled

Jan 18th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. // na początku
  2. #include <algorithm>
  3. #include <string>
  4.  
  5. std::string str; // w nim masz tekst
  6. std::transform(str.begin(), std.end(), str.begin(), std::tolower);
  7.  
  8. // taki zabieg dla obu stringów i porównujesz
  9.  
  10. // jeżeli chcesz zmieniony tekst mieć w drugim stringu, to:
  11. std::string src; // źródło
  12. std::string dest; // cel
  13.  
  14. std::transform(src.begin(), src.end(), dest.begin(), std::tolower);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement