文件名称: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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.