Syntax Reverse (string) parameter string: String returned value of the string to Reverse the character order. If the function is successfully executed, the string with the reversed character order is returned. If an error occurs, the Null String ("") is returned (""). Use the Reverse () function to place the last character in a string to the first character position of another string, the last and second character to the second character position of another string, and so on. EXAMPLE: // reverse algorithm example # include <iostream> # include <algorithm> # include <vector> using namespace std; int main () {vector <int> myvector; vector <int>: iterator it; // set some values: for (int I = 1; I <10; ++ I) myvector. push_back (I); // 1 2 3 4 5 6 7 8 9 reverse (myvector. begin (), myvector. end (); // 9 8 7 6 5 4 3 2 1 // print out content: cout <"myvector contains:"; for (it = myvector . Begin (); it! = Myvector. end (); ++ it) cout <"" <* it; cout <endl; return 0;} Output: myvector contains: 9 8 7 6 5 4 3 2 1