check if a character is a letter c++ code example Example: isalpha c++ char test='a'; cout<<isalpha(test);