I've been tasked to write code for a c++ program that will find the consonants in user input. So, if I enter abc, the program will tell me that there are two consonants. The question is below. I'm not looking for someone to write the code for me, I just need someone to help me figure out how to compare user input characters to a string.

Write a program that determines how many consonants are in an entered string of 50 characters or less. Output the entered string and the number of consonants in the string. You can assume the following ;
Consonants: bcdfghjklmnpqrstvwxyz