Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <map>
- using namespace std;
- int main() {
- map<int, string> m = {{1, "Geeks"},
- {2, "For"}, {3, "Geeks"}};
- m[0] = "Tweaks";
- m.at(1) = "By";
- cout << m[0] << endl;
- cout << m.at(1);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment