字符串反转
程序清单16.6
#include<string>
#include<iostream>
#include<algorithm>
using namespace std;
int main(){
string s("hello world!!!");
reverse ( s.begin(), s.end());
cout << s << endl;
string s1("ni hao");
reverse ( s1.begin() + 4, s1.end());
cout << s1 << endl;
}