fork download
  1. #include <algorithm>
  2. #include <cctype>
  3. #include <iostream>
  4. #include <vector>
  5. using namespace std;
  6.  
  7. int main() {
  8. vector<char> foo;
  9. for (char c = 'A'; c != 'Z'; ++c)
  10. foo.push_back(c);
  11.  
  12. use_facet<ctype<char>>(cout.getloc()).tolower(foo.data(), next(foo.data(), foo.size()));
  13. for (auto E : foo)
  14. cout << E << " ";
  15. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
a b c d e f g h i j k l m n o p q r s t u v w x y