convert lower case letter into upper case in c++ using function code example
Example: 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);
}
for(int i=0;i<str.size();i++){
int c = str[i];
if (islower(c))
str[i] = toupper(c);
}