Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to convert string into lowercase in cpp

  // sl is the string which is converted to lowercase 
    string sl = "Jatin Goyal"; 
  
    // using transform() function and ::tolower in STL 
    transform(sl.begin(), sl.end(), sl.begin(), ::tolower); 
 
PREVIOUS NEXT
Tagged: #convert #string #lowercase #cpp
ADD COMMENT
Topic
Name
6+6 =