Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <map>
- using namespace std;
- int main()
- {
- map<string, int> mapa;
- mapa["Josif"] = 22;
- mapa["Kiko"] = 18;
- mapa["Stefan"] = 29;
- for(auto it = mapa.begin(); it != mapa.end(); it++) {
- cout << it->first << " " << it->second << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement