fork download
  1. #include <string>
  2. #include <iterator>
  3. #include <iostream>
  4. #include <algorithm>
  5. using namespace std;
  6. int main()
  7. {
  8. string test = "TEST";
  9.  
  10. // :: global namespace for clib tolower
  11. transform(test.begin(), test.end(), test.begin(), ::tolower);
  12.  
  13. cout << test << endl;
  14. return 0;
  15. }
Success #stdin #stdout 0s 2984KB
stdin
Standard input is empty
stdout
test