HELP!!! I HAVE NO IDEA WHAT IM DOING!

I have this question and I have no idea where to start off from. Can someone start me off and help me with this problem because I am completely lost.


Question: Write a C++ program that reads a line from cin, prints its characters in reverse order on cout, and tells whether the input line is a palindrome. For example, this is a output of the program:

Enter string: madam I’m adam
madam I’m adam
is not palindrome
closed account (48T7M4Gy)
C++ program that reads a line from cin, prints its characters in reverse order on cout, and tells whether the input line is a palindrome.


1. read a line from cin,
2. print its characters in reverse order on cout
3. tell whether the input line is a palindrome

That's a start. Let's see you do 1 with a running program.

http://www.cplusplus.com/reference/string/string/string/
http://www.cplusplus.com/reference/string/string/getline/
Last edited on
Do you know how to count backwards ?
closed account (48T7M4Gy)
Do you know how to count backwards ?

I can but in the absence of a reply I have my doubts about OP's qualifications in that field.
Topic archived. No new replies allowed.