Answers for "how to compare a uppercase with a lowers in c++"

C++
13

how to compare lower case character to uppercase cpp

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

Code answers related to "how to compare a uppercase with a lowers in c++"

Browse Popular Code Answers by Language