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