Advertisement
3axap_010

main.cpp

Sep 20th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include "String.h"
  2.  
  3. int main()
  4. {
  5.     String s = "abcdefg";
  6.     std::cout << s << std::endl;
  7.  
  8.     String s1 = s;
  9.     s1 += s;
  10.     std::cout << s1 << std::endl;
  11.  
  12.     ++s1;
  13.     std::cout << s1 << std::endl;
  14.  
  15.     --s1;
  16.     std::cout << s1 << std::endl;
  17.  
  18.     String s2(5, 65); //5 'A' symbols
  19.     std::cout << s2 << std::endl;
  20.  
  21.     system("pause");
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement