Answers for "string c++ if letter is lowercase"

C++
3

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
4

string c++ if letter is lowercase

if (isupper(str[i])) {
	// str[i] is uppercase
}
Posted by: Guest on September-14-2020
3

string c++ if letter is lowercase

str[i] = toupper(str[i]);
Posted by: Guest on September-14-2020
1

string c++ if letter or number

char test='a';
cout<<isalpha(test);
Posted by: Guest on August-20-2020

Code answers related to "string c++ if letter is lowercase"

Browse Popular Code Answers by Language