Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <map>
- #include <iostream>
- using namespace std;
- int main() {
- map<int, int> t;
- t[1] = 10;
- t[1000] = 100;
- for (map<int, int> :: iterator it = t.begin(); it != t.end(); ++it)
- cout << it -> first << " " << it -> second << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement