hey guys i just have a question, if the user of these palindrome programs would put in a bunch of words, how would i make the program output just the palindromes, instead of it stating whether it is a palindrome or not?
also my professor mentioned to me that I should make two functions with the prototypes:
std::string reverse(const std::string& s);
bool is_palindrome(const std::string& s);
and that would make it easier to check whether a string is a palindrome...
basically i have to write out the functions...and then output the palindromes from a given input..im pretty sure i could figure out the bool function, but im not sure about the reverse.. also another problem is, im kind of a noob and im not sure exactly how to include the functions in the main function..can somebody just give me like a outline or a step by step or somethin just to show me the right way to do this? thanks a lot..