#include <string>
#include <map>
using namespace std;
int main()
{
map<string, string>contactPerson;
contactPerson["Volkswagon of America"] = "I.B. Cheaton";
contactPerson["Wallers Fargo Bank"] = "Ima Swindler";
contactPerson["Chipotle Mexican Grill"] = "E. Coli";
contactPerson["Takata Inc"] = "I. X. Plodum";
cout << "Takata Inc = " << contactPerson["Takata Inc"] << endl << endl;
cout << "# of contacts: " << contactPerson.size() << endl << endl;
for (map<string, string>::iterator it = contactPerson.begin(); it!=
contactPerson.end(); ++it)
{
cout << (*it).first << ":\t" << (*it).second << endl << endl;
if (contactPerson.find("Volkswagon of America") == contactPerson.end())
cout << "It's not in the map!" << endl << endl;
else
cout << "It's in the map" << endl << endl;
}
}