0
GGGiovanny Gongora
In-place method
0 Comments
#include <iostream> #include <string> std::string s2 = std::string(string.rbegin(), string.rend()); std::cout << "reverse again, create a new string: " << s2 << std::endl;