If you looked for a specific letter anywhere in the word you would use std::string find_first_of.
Now just for the first letter you can access the first element of a string like if ( word[0] == "f" ). Put all inputs into a for loop and check the first element for all of them.
Now just for the first letter you can access the first element of a string like if ( word[0] == "f" ). Put all inputs into a for loop and check the first element for all of them.
If word is of type std::string then word[0] cannot be meaningfully compared to a string literal. You should use a character literal instead. if ( word[0] == 'f' )