how to check if string input is capital letter cpp code example Example: check if character in string is uppercase c++ if (isupper(str[i])) { // str[i] is uppercase }