fork download
  1. #include <algorithm>
  2. #include <iostream>
  3. #include <string>
  4. using namespace std;
  5. int main() {
  6. string str = "hogehoge";
  7. reverse(str.begin(), str.end());
  8. cout << str << endl;
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 2856KB
stdin
Standard input is empty
stdout
egohegoh