I am trying to print out the address value that I stored in the string. After I compile, it shows error: no match for 'operator<<'
. Does that mean what inside the Address_list
is not matched something?
#include <iostream>
#include <string>
#include <map>
#include "IPHost.h"
using namespace std;
int main() {
map<string, IPHost> Address_list;
Address_list["google.com"]=IPHost(74,125,225,20);
cout << "google.com has address" << Address_list["google.com"] << endl;
}