convert a string to uppercase c++ code example
Example 1: python convert string to lowercase
# By Alan W. Smith and Petar Ivanov
s = "Kilometer"
print(s.lower())
Example 2: string to upper c++
std::string data = "This is a sample string.";
// convert string to upper case
std::for_each(data.begin(), data.end(), [](char & c){
c = ::toupper(c);
});