how to check if a character is a lower case letter c++ code example
Example 1: uppercase capitalise character in string c++
str[i] = toupper(str[i]);
Example 2: check if character in string is uppercase c++
if (isupper(str[i])) {
// str[i] is uppercase
}