OK well ive been trying to get this..and its just not working the way it should work.... :cry:
The this is i got the cin in there...to put the input up in the code but it wont find where the addreess is....like i should be able to say...Erics address is?...and then the address should come up...but all it does is exit...im confused and frustated about it..but thats what c++ is... :D
#include <map>
#include <string>
#include <iostream>
using namespace std;
int main()
{
map<string,string> addressbook;
pair<string,string> p1("Eric","415 East Arlington");
addressbook.insert(p1);
typedef pair<string,string> entry;
int a;
map<string,string>::iterator iter;
cin >> a;
cout << " " <<a << addressbook["Eric"] << endl;
cout << endl;
char response;
std::cin >> response;
return 0;
}