Answers for "convert whole string to lowercase c++"

C++
0

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; 
}
Posted by: Guest on March-27-2021

Code answers related to "convert whole string to lowercase c++"

Browse Popular Code Answers by Language