check any letter is uppercase c++ code example
Example 1: c++ check if string contains uppercase
#include <algorithm>
any_of(str.begin(), str.end(), isupper)
Example 2: check if character in string is uppercase c++
if (isupper(str[i])) {
// str[i] is uppercase
}