Thank you, Shinigami. I guess I don't understand recursion as well as I thought.
My prof requested that the reverseDisplay function user a helper function so I am trying to do it this way.
In this two examples firs example may by a little faster if you have string over 100000 length, as it don't need to recount string length. But you can modify second example to do the same.
1 2 3 4 5 6
void reverseDisplay(string s, int simbol) //reverse display function
{
cout << s[simbol];
if (simbol)
reverseDisplay(s, simbol - 1);
}
and call it reverseDisplay(sreverse, sreverse.length() - 1); //sends string to function for reversing