Advertisement
_takumi

Строка

Aug 31st, 2019
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class ReversibleString {
  5. public:
  6.     ReversibleString(const string &str) {
  7.         s = str;
  8.     }
  9.     ReversibleString() {}
  10.     void Reverse() {
  11.         reverse(begin(s), end(s));
  12.     }
  13.     string ToString() {
  14.         return s;
  15.     }
  16. private:
  17.     string s;
  18. };
  19.  
  20. int main() {
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement