how to check uppercase and 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
}
str[i] = toupper(str[i]);
if (isupper(str[i])) {
// str[i] is uppercase
}