苗火 Nicholas
[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;
}
发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容