Advertisement
35657

Untitled

Mar 14th, 2024
525
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include <iostream>
  2.  
  3.  
  4. using namespace std;
  5.  
  6.  
  7.  
  8.  
  9. int main() {
  10.     setlocale(LC_ALL, "ru");
  11.  
  12.     string text = "Hello";
  13.     cout << text << endl;
  14.     text = "jnjknjklnkjnjknjknjklnjkn";
  15.  
  16.     string s1;
  17.     string s2;
  18.     string s3;
  19.  
  20.     s1 = "abc";
  21.     s2 = { 'a', 'b', 'c' };
  22.     s3 = s1;
  23.  
  24.     cout << (s1 == s2) << " " << (s1 > s2) << endl;
  25.  
  26.     s3 = s1 + "     " + s2;
  27.  
  28.     cout << s3 << endl;
  29.  
  30.     cout << s3.size() << endl;
  31.  
  32. }
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement