 |
|

Which function will correctly find the name in the map that matches the target? The output of the program should be:
Wright, Eaton
Name not found
#include <iostream>
#include <map>
#include <string>
using namespace std;
// Main
void main()
{
map<string,string> idMap;
idMap["501-10-3011"] = "DeBanque, Robin";
idMap["301-10-3012"] = "Wright, Eaton";
idMap["201-10-3010"] = "Oki, Cary";
cout << GetName(idMap,"301-10-3012") << endl;
cout << GetName(idMap,"999-99-9999") << endl;
}
|
 |
| |
|
|
 |