Advertisement
Tranvick

Untitled

Mar 7th, 2013
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <map>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7.     map<int, int> t;
  8.     t[1] = 10;
  9.     t[1000] = 100;
  10.     for (map<int, int> :: iterator it = t.begin(); it != t.end(); ++it)
  11.         cout << it -> first << " " << it -> second << endl;
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement