HOw can i know the amount of uppercase in string with c++ code example
Example 1: convert all characters in string to uppercase c++
transform(str.begin(), str.end(), str.begin(), ::toupper);
Example 2: check if character in string is uppercase c++
if (isupper(str[i])) {
// str[i] is uppercase
}