<pre name="code" class="cpp">//这里把原来的属性字符串可以换成枚举或者int节省内存,加快速度
#include<iostream>
#include<hash_map>
#include<string>
using namespace std;
int main()
{
<span style="white-space:pre"> </span> enum KPROPERTY {
<span style="white-space:pre"> </span>KASKPRICE1,
<span style="white-space:pre"> </span>KASKVOLUME1,
<span style="white-space:pre"> </span>KBIDPRICE1,
<span style="white-space:pre"> </span>KBIDVOLUME1
<span style="white-space:pre"> </span>};
<span style="white-space:pre"> </span>hash_map<int, hash_map<int, double>> myhash_map;
<span style="white-space:pre"> </span>myhash_map[001][KASKPRICE1]=1.0;
<span style=&