Guest User

Untitled

a guest
Aug 19th, 2015
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <algorithm>
  4. using namespace std;
  5.  
  6. struct Struktura
  7. {
  8.     bool funkcja(string& wyraz1, string& wyraz2)
  9.     {
  10.         string str1(wyraz1), str2(wyraz2);
  11.         transform(str1.begin(),str1.end(),str1.begin(),tolower());
  12.         transform(str2.begin(),str2.end(),str2.begin(),tolower());
  13.  
  14.         return (str1 < str2);
  15.  
  16.  
  17.     }
  18. };
  19.  
  20. int main()
  21. {
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment