Main.cpp 578 B

12345678910111213141516171819202122232425262728293031323334
  1. #include "myString.h"
  2. #define stop __asm nop
  3. int main()
  4. {
  5. MyString s1("first");
  6. MyString s2("first");
  7. MyString s3("first");
  8. MyString s11("behavior");
  9. MyString s4("second");
  10. MyString s5("third");
  11. MyString s10("third&second");
  12. MyString s6("aaaaa");
  13. MyString s7("annoing");
  14. MyString s8(nullptr);
  15. MyString s9("annoing");
  16. MyString s12("zond");
  17. MyString::PrintAllStrings();
  18. std::cout << std::endl;
  19. MyString::ChangeRegister();
  20. MyString::PrintAllStrings();
  21. std::cout << std::endl;
  22. MyString str("SSSSS");
  23. MyString::PrintSortedStrings();
  24. stop
  25. return 0;
  26. }