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, string> mapa;
- mapa["Josif"] = "Tepegjozov";
- mapa["Cedo"] = "Trpeski";
- mapa["Marija"] = "Stankoska";
- for(map<string, string>::iterator it = mapa.begin(); it != mapa.end(); it++) {
- cout << it->first << " " << it->second << endl;
- }
- for(auto i : mapa) {
- cout << i.first << " " << i.second << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement