Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <vector>
- #include <map>
- using namespace std;
- int main()
- {
- *******************************************
- map<string, int> a;
- a["one"] = 1;
- map<string, int> b;
- *******************************************
- vector<string> a = { "fire", "water" };
- vector<string> b = { "fog", "air" };
- *******************************************
- if (a == b)
- {
- cout << "a is equal to b";
- }
- else
- {
- cout << "a is not equal to b";
- }
- *******************************************
- string s = "abc";
- if (!s.empty() && s < "zzz") !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- {
- cout << s;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement