文件名称:testStrucKey
介绍说明--下载内容均来自于网络,请自行研究使用
结构体作为map 的key的问题:
1.首先需要重载操作符operator <,否则,元素排序是凌乱的,用find查找会有问题
2.测试发现,用结构体作key比用拼凑组合的string作key查找效率要高些-Structure as a map of the key questions: 1. First of all, the need for operator overloading operator
1.首先需要重载操作符operator <,否则,元素排序是凌乱的,用find查找会有问题
2.测试发现,用结构体作key比用拼凑组合的string作key查找效率要高些-Structure as a map of the key questions: 1. First of all, the need for operator overloading operator
(系统自动生成,下载前可以参看下载内容)
下载文件列表
testStrucKey
............\ReadMe.txt
............\res
............\...\testStrucKey.rc2
............\resource.h
............\stdafx.cpp
............\stdafx.h
............\testStrucKey.aps
............\testStrucKey.cpp
............\testStrucKey.h
............\testStrucKey.rc
............\testStrucKey.vcproj
............\testStrucKey.vcproj.E82A48F08635427.Administrator.user
............\testStrucKeyDlg.cpp
............\testStrucKeyDlg.h
............\ReadMe.txt
............\res
............\...\testStrucKey.rc2
............\resource.h
............\stdafx.cpp
............\stdafx.h
............\testStrucKey.aps
............\testStrucKey.cpp
............\testStrucKey.h
............\testStrucKey.rc
............\testStrucKey.vcproj
............\testStrucKey.vcproj.E82A48F08635427.Administrator.user
............\testStrucKeyDlg.cpp
............\testStrucKeyDlg.h