i wanted to show you a wonderful solution for reversing a string:


void REVERSE()
{
char line[MAXLINE];
cin>>line;       //'line' gets the word untill the user insert space(or return).
char word;
cin.get(word);     //gets the first character after the word.
if(word!='\n')     //the user did not insert enter.
REVERSE();     //calling the function
cout<}

amazing ah?
bye bye, Shimon