rootuss

wielkosc liter

Feb 27th, 2017
192
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data