文件名称:transfer_char_to_key
介绍说明--下载内容均来自于网络,请自行研究使用
VC7.1中如果将char*作为key的话需要重载关于char*的hash_compare函数
可是我怎么都没法搞定
只好将char*转为int,反正指针地址总是唯一的,然后重载关于
int的hash_compare函数,使用时将char*强制转为int即可我想除了用STLPort外,应该还有更好的方法吧
-VC7.1 which will char * key as the need for heavy char * has h_compare function but I happen to get how they will char to int *, Anyway, the only indicator is the address, then heavy on the hash_compare int function, the use of char to int * will be compulsory I would like to use STLPort addition, there should be a better way to it
可是我怎么都没法搞定
只好将char*转为int,反正指针地址总是唯一的,然后重载关于
int的hash_compare函数,使用时将char*强制转为int即可我想除了用STLPort外,应该还有更好的方法吧
-VC7.1 which will char * key as the need for heavy char * has h_compare function but I happen to get how they will char to int *, Anyway, the only indicator is the address, then heavy on the hash_compare int function, the use of char to int * will be compulsory I would like to use STLPort addition, there should be a better way to it
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 67506257transfer_char_to_key.rar 列表 transfer_char_to_key.cpp uselessfile.cpp