Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

convert whole string to lowercase c++

#include<bits/stdc++.h> 
using namespace std; 
main() { 
    string s = "Viet Nam"; 
    transform(s.begin(), s.end(), s.begin(), ::tolower); //lowercase
    cout << s << endl; 
}
 
PREVIOUS NEXT
Tagged: #convert #string #lowercase
ADD COMMENT
Topic
Name
9+7 =