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