Created
November 6, 2015 23:55
-
-
Save jmjuanes/8c3b005cd9c23754aa01 to your computer and use it in GitHub Desktop.
Convert string to Lowercase (resp, Uppercase) in C++
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <algorithm> | |
#include <string> | |
std::string data = "Abc"; | |
std::transform(data.begin(), data.end(), data.begin(), ::tolower); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment