2009-11-20 c++ string reverse string s = "hello"; reverse(s.begin(), s.end()); cout << s << endl;STLのincludeでreverse()が定義されているようだ。