文件名称:c++
介绍说明--下载内容均来自于网络,请自行研究使用
程序设计当中经常会出现使用同种数据结构的不同实例的情况。例如:在一个程序中
可以使用多个队列、树、图等结构来组织数据。同种结构的不同实例,也许只在数据元素
的类型或数量上略有差异,如果对每个实例都重新定义,则非常麻烦且容易出错。那么能
否对同种类型数据结构仅定义一次呢?答案是肯定的,C++提供的类模板(Class Template
)就可以实现该功能。
-Program design which often use the same kinds of data structures of different examples of the situation. For example: in one program can use multiple queues, trees, graph structure to organize data. Structure with different kinds of examples, perhaps only in the data elements of the type or number of slightly different, if each instance of re-definition, is very cumbersome and error-prone. So whether on the same data structure types defined only once? The answer is yes, C++ Provided class template (Class Template) can realize the feature.
可以使用多个队列、树、图等结构来组织数据。同种结构的不同实例,也许只在数据元素
的类型或数量上略有差异,如果对每个实例都重新定义,则非常麻烦且容易出错。那么能
否对同种类型数据结构仅定义一次呢?答案是肯定的,C++提供的类模板(Class Template
)就可以实现该功能。
-Program design which often use the same kinds of data structures of different examples of the situation. For example: in one program can use multiple queues, trees, graph structure to organize data. Structure with different kinds of examples, perhaps only in the data elements of the type or number of slightly different, if each instance of re-definition, is very cumbersome and error-prone. So whether on the same data structure types defined only once? The answer is yes, C++ Provided class template (Class Template) can realize the feature.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
新建 Microsoft Word 文档.doc