Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

converting a string to lowercase inbuld function in cpp

#include <iostream>
#include <algorithm>
using namespace std;

int main() {
   string my_str = "Hello WORLD";

   cout << "Main string: " << my_str << endl;
   transform(my_str.begin(), my_str.end(), my_str.begin(), ::tolower);

   cout << "Converted String: " << my_str;
}
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #converting #string #lowercase #inbuld #function #cpp
ADD COMMENT
Topic
Name
4+5 =