文件名称:Exp29_2_2
介绍说明--下载内容均来自于网络,请自行研究使用
保存学生的简明资料,要求按学号排序,使用映射关联容器
(因为不会重号)是最合适的。如用姓名排序,因姓名可能重复,使用多重映射更为合适。
使用时要用头文件<set>。map和multimap将key/value pair当做元素进行管理,并根据key
的排序准则自动将元素排序。-Save students concise, asking sorted by student number, use the mapping associated with the container (because it would not re-number) is the most appropriate. With names such as sorting, due to possible duplication of names, more appropriate use of multiple maps. Use the header files used <set> . map and multimap will be key/value pair as an element of management and, based on key elements of the sort criteria for automatically sorting.
(因为不会重号)是最合适的。如用姓名排序,因姓名可能重复,使用多重映射更为合适。
使用时要用头文件<set>。map和multimap将key/value pair当做元素进行管理,并根据key
的排序准则自动将元素排序。-Save students concise, asking sorted by student number, use the mapping associated with the container (because it would not re-number) is the most appropriate. With names such as sorting, due to possible duplication of names, more appropriate use of multiple maps. Use the header files used <set> . map and multimap will be key/value pair as an element of management and, based on key elements of the sort criteria for automatically sorting.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Exp29_2_2.cpp