Advertisement
RobertDeMilo

WB1.9

Sep 2nd, 2023
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.68 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <vector>
  4. #include <map>
  5.  
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10. *******************************************
  11.     map<string, int> a;
  12.     a["one"] = 1;
  13.  
  14.     map<string, int> b;
  15. *******************************************
  16.     vector<string> a = { "fire", "water" };
  17.     vector<string> b = { "fog", "air" };
  18. *******************************************
  19.     if (a == b)
  20.     {
  21.         cout << "a is equal to b";
  22.     }
  23.     else
  24.     {
  25.         cout << "a is not equal to b";
  26.     }
  27. *******************************************
  28.     string s = "abc";
  29.  
  30.     if (!s.empty() && s < "zzz")  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  31.     {
  32.         cout << s;
  33.     }
  34.  
  35.     return 0;
  36. }
Tags: Empty
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement