#include #include #include using namespace std;int main(){ map directory; directory.insert(pair("T", "4444")); directory.insert(pair("C", "9999")); directory.insert(pair("J", "8888")); directory.insert(pair("R", "0000")); string s; cout << "Enter name: "; cin >> s; map::iterator p; p = directory.find(s); if(p != directory.end()) cout << "Phone number: " << p->second; else cout << "Name not in directory.\n"; return 0;}