#include <iostream>
#include <string>
#include <cstdlib>
#include <map>
using namespace std;
int main(int argc, char *argv[]){
system("color 2f");
map<string, string> name;
name["lady"] = "Gaga";
name["luna"] = "Maya";
name["barack"] = "Obama";
name["aura"] = "Kasih";
map<string, string>::iterator it;
for(it = name.begin(); it != name.end(); it++){
cout << (*it).first << " => " << (*it).second << endl;
}
return 0;
}
#include <string>
#include <cstdlib>
#include <map>
using namespace std;
int main(int argc, char *argv[]){
system("color 2f");
map<string, string> name;
name["lady"] = "Gaga";
name["luna"] = "Maya";
name["barack"] = "Obama";
name["aura"] = "Kasih";
map<string, string>::iterator it;
for(it = name.begin(); it != name.end(); it++){
cout << (*it).first << " => " << (*it).second << endl;
}
return 0;
}
No comments:
Post a Comment