文件名称: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
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
