fork(21) download
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <string>
  4. #include <functional>
  5. #include <cctype>
  6.  
  7. using namespace std;
  8.  
  9. int main()
  10. {
  11.  
  12. string s;
  13.  
  14. cin >> s;
  15.  
  16. std::transform(s.begin(), s.end(), s.begin(), std::ptr_fun<int, int>(std::toupper));
  17.  
  18. cout << s;
  19.  
  20. return 0;
  21.  
  22. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
Standard output is empty