fork download
  1. #include <algorithm>
  2. #include <cctype>
  3. #include <iostream>
  4. #include <iterator>
  5. #include <string>
  6.  
  7. int main()
  8. {
  9. std::string line = "abcdefghijklmnopqrstuvwxyz";
  10. std::transform(line.begin(), line.end(), line.begin(), std::ptr_fun<int, int>(std::toupper));
  11. std::cout << line << std::endl;
  12. return 0;
  13. }
Success #stdin #stdout 0s 3428KB
stdin
Standard input is empty
stdout
ABCDEFGHIJKLMNOPQRSTUVWXYZ