Answers for "check if letter uppercase or lowercase c++"

C++
7

c++ check if string contains uppercase

#include <algorithm>

any_of(str.begin(), str.end(), isupper)
Posted by: Guest on March-15-2021
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

Code answers related to "check if letter uppercase or lowercase c++"

Browse Popular Code Answers by Language