[C++]An example of hash_map

2019-4-23 写技术

#include <hash_map>
#include <string>
#include <iostream>
using namespace std;
using namespace stdext;
int main(){
	hash_map<string, string> mymap;

	mymap["aa"] = "Hello!";
	mymap["bb"] = "You are who?";
	mymap["cc"] = "See you!";

	cout<<mymap["bb"]<<endl;
	return 0;
}

标签: C++

发表评论:

Powered by anycle 湘ICP备15001973号-1