Reverse A String by STL string
string strValue; // STL string.
cin >> strValue;
strValue.replace(strValue.begin(), strValue.end(), strValue.rbegin(), strValue.rend());
cout << strValue;
Please learn STL in deep!
string strValue; // STL string.
cin >> strValue;
strValue.replace(strValue.begin(), strValue.end(), strValue.rbegin(), strValue.rend());
cout << strValue;
Please learn STL in deep!