Answers for "islower function c++ if else"

C++
13

string c++ if letter is lowercase

for(int i=0;i<str.size();i++){
int c = str[i]; 
        if (islower(c))  
            str[i] = toupper(c);
}
Posted by: Guest on April-25-2020

Browse Popular Code Answers by Language