Advertisement
rootuss

wielkosc liter

Feb 27th, 2017
435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include <iostream>
  2. #include <algorithm>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     string napis= "Ala ma kota";
  9.  
  10.     transform(napis.begin(),napis.end(),napis.begin(),::toupper);
  11.     cout<<napis;
  12.  
  13.     cout<<endl<<endl;
  14.     transform(napis.begin(),napis.end(),napis.begin(),::tolower);
  15.     cout<<napis;
  16.     cout<<endl<<endl;
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement