Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- struct String {
- String (String const& other) {
- size = other.size;
- if (size > 0) {
- str = new char[size + 1];
- str[size] = '