文件名称: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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
transfer_char_to_key.cpp
uselessfile.cpp
www.dssz.com.txt
uselessfile.cpp
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.