ok im stuck here atm...what im trying to do is to have the program compile to run in windows..and i have to type in the name...and the program goes into the database and finds the address and puts it onto the screen...just like an address book..
So heres my code..anyone have some advice or tips?
:mrgreen:
#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;
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;
}