Advertisement
nastiia_firefly

Untitled

Dec 2nd, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.15 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. #include <string.h>
  4. #include "Person.h"
  5.  
  6. using namespace std;
  7.  
  8.  
  9. int main()
  10. {
  11.  
  12. cout<<"s1=s2\n";
  13. TString s1("Heyyy");
  14. TString s2("Youu");
  15. s1=s2;
  16. s1.output();
  17.  
  18. cout<<"s1+s2\n";
  19. TString s3;
  20. TString s4;
  21. TString s5;
  22. s5=s3+s4;
  23. s5.output();
  24. /*
  25. TString s61;
  26. s61.input();
  27. s61.output();
  28. */
  29. cout<<"s1%s2\n";
  30. TString s6("Pur");
  31. TString s7("Lur");
  32.  
  33.  //work with debug
  34. (s6%s7).output();
  35.  
  36. cout<<"find_s2_in_s1\n";
  37. find_s2_in_s1(s6,s7); //і як це вивести нормально?
  38.  
  39. cout<<"Clear Poz";
  40. ClearPoz(s1);//і це теж
  41.  
  42.  
  43. /*
  44.    if(s1==s2) cout<<"Length of s1 is equal to length of s2\n" ;
  45.    else
  46.    {
  47.        if(s1!=s2) cout<<"s1!=s2\n";
  48.        if(s1<s2) cout<<"s1<s2\n";
  49.         else cout<<"s1>s2\n";
  50.        if(s1>=s2) cout<<"s1>=s2\n";
  51.         else cout<<"s1<=s2\n";
  52.        if(s1<=s2) cout<<"s1<=s2\n";
  53.         else cout<<"s1>=s2\n";
  54.        if(s1>s2) cout<<"s1>s2\n";
  55.         else cout<<"s1<s2\n";
  56.  
  57.    }
  58. */
  59. //------------------------FUNCTIONS--------------------------------------
  60. //-----------------------------------------------------------------------
  61.  
  62.     return 0;
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement