Remember that reversing a string in C++ is this easy:
#include <iostream>
#include <string>
int main()
{
std::string myString = "Hello World!";
std::cout << myString << "\n";
std::reverse(myString.begin(), myString.end());
std::cout << myString << "\n";
}