Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "String.h"
- int main()
- {
- String s = "abcdefg";
- std::cout << s << std::endl;
- String s1 = s;
- s1 += s;
- std::cout << s1 << std::endl;
- ++s1;
- std::cout << s1 << std::endl;
- --s1;
- std::cout << s1 << std::endl;
- String s2(5, 65); //5 'A' symbols
- std::cout << s2 << std::endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement