hmm im trying to convert this over..so that i can right the name in the program and it finds..the address in the database....i think im on the right track just some problems...any help or tips?

#include <map> 
#include <string>
#include <iostream>
using namespace std;

int main() 
{
    map<string,string> addressbook;
    pair<string,string> p1("Eric","415 West Smith");
    addressbook.insert(p1);
    
typedef pair<string,string> entry;
    map<string,string>::iterator iter;
    cout << "What is Eric's address?" << endl;
    cout << "" << addressbook["Eric"] << endl;
    cout << endl;

    char response;
    std::cin >> response;
    return 0;

}

what do you mean "convert it over" ? from what to what? What problems are you having? you need a more detailed description of your problem(s)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.