c++ check if uppercase 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
}