Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class ReversibleString {
- public:
- ReversibleString(const string &str) {
- s = str;
- }
- ReversibleString() {}
- void Reverse() {
- reverse(begin(s), end(s));
- }
- string ToString() {
- return s;
- }
- private:
- string s;
- };
- int main() {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement