Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String& operator+=(const String& s) {
- for (size_t i = 0; i < s.sz; ++i) {
- push_back(s[i]);
- }
- return *this;
- }
- String& operator+=(const char c) {
- push_back(c);
- return *this;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement