how to check if a letter is lowercase in 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
}