Search
 
SCRIPT & CODE EXAMPLE
 

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;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: the statement vector vector int matrix(100 vector int (50 100) ) declares 
Cpp :: output sum of a range 
Cpp :: c++ thread id 
Cpp :: libraries required for gaming in c++ 
Cpp :: c++ constructor initializing list 
Cpp :: return multiple objects from a function C++ using references 
Cpp :: ue4 execute delegate from blueprint 
Cpp :: can map return a value to a variable in c++ 
Cpp :: __aeabi_assert() 
Cpp :: Extended Euclid Algorithm Recursive Solution 
Cpp :: generate random ints and floats 
Cpp :: std::hash 
Cpp :: 271533778232847 
Cpp :: ue_log example 
Cpp :: 3 conditions for a while loop c++ 
Cpp :: convert char to C 
Cpp :: number triangle c++ 
Cpp :: 1491. Average Salary Excluding the Minimum and Maximum Salary leetcode solution in c++ 
Cpp :: factorial MOD 998244353 
Cpp :: 2d vector size c++ 
Cpp :: how to use printf with microseconds c++ 
Cpp :: qt/c++ exception handler 
Cpp :: is vowel c++/c 
Cpp :: c++ sort a 2d vector by column 
Cpp :: c++ map value int to string 
Cpp :: c++ find string in string 
Cpp :: how to write hello world c++ 
Cpp :: constructor overloading in c++ 
Cpp :: how to define range of numbers inside a if condition in c++ 
C :: auto click connect colab 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =