Hi... there... I'm omick from the Philippines... Actually I'm a newbie here... I really dont know what you people are talking about... But anyways i'll be giving my idea of how to make a palindrome... I mean not really the whole thing... and i'm not that sure if this stuff thats on my mind will work out... ok here it is:
define your main function and include all those prompt thingy...:
like this one... i'm not so sure with this...
bool it_is_palindrome(string palindrome2)
int main()
{
string palindrome;
//prompt the user for a line of input
e.g.:
cout << "Enter now your word: ";
getline(cin, palindrome);
//now to test whether it is a palindrome you make a validation function... e.g. bool;
if (it_is_palindrome(palindrome))
cout << "It is a palindrome!";
else
cout << "Not a palindrome";
return 0;
}
<< moderator edit: added
code tags: [code][/code] >>
uhmmm.... i'm using a cafe... sorry i dont have much time left... maybe next time ok...
but wait...
arrays are very useful here...
this function should be included:
*function that will convert all your letters into small letters
e.g.
for (int i=0; i<lengt_of_string; i++)
letter[i]=(tolower(another_letter[i]);
*function that will remove any punctuation marks including spaces
Tell me if you like my sample solution... I can really solve the problem... But I dont have enough time... If you like it... I can provide you the whole program... ok... e-mail me: << moderator edit: email snipped >>