I got the program to print (on the screen) the message backwards. However, now that it is saved as, int len, it is now a backward message. I need to get the message saved correctly after this part so now I may find a certain letter and replace it with another letter, but first I need to reverse the message back.
HERE'S WHAT I HAVE !!!! I thought by calling the message again that I would be able to reverse the message but it prints out backwards still. Here's what I need this to do.
When I type: give me the knowledge i need
1st I get: [blue]deen i egdelwonk eht em evig [/blue]
which is correct.
I need now to have it save as: [blue] give me the knowledge i need[/blue]
This printed out so I know it did reverse.
using namespace std;
void main ()
char name ;
cout << "Enter saying: ";
int len = (int) strlen(name)-1;
for(int i=len; i>=0; i--)
cout << name[i];
for (int i=len; i>=0; i--)