文件名称:counter
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:947byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
编写一个具有类模板tmplt,用于实现所谓的反序输出问题,其中使用了类型参数T(使所处理的元素类型可变化)以及普通参数n(元素个数也可变化):
而后编制主函数,将类模板实例化为某个具体的类并说明类对象,之后通过对象调用其负责输入数据的成员函数,再通过对象调用另一成员函数按反序输出那些输入数据。-The preparation of a class template has the following styles tmplt, used to achieve the so-called sequence output problem, which uses a type parameter T ( so that the processing of the element type can be changed ) and common parameters of n ( the number of elements can be changed ):instantiated for a specific descr iption of the class and class object, followed by the object which is responsible for the input data member functions, and through the object calls another member function according to the input data sequence output.
而后编制主函数,将类模板实例化为某个具体的类并说明类对象,之后通过对象调用其负责输入数据的成员函数,再通过对象调用另一成员函数按反序输出那些输入数据。-The preparation of a class template has the following styles tmplt, used to achieve the so-called sequence output problem, which uses a type parameter T ( so that the processing of the element type can be changed ) and common parameters of n ( the number of elements can be changed ):instantiated for a specific descr iption of the class and class object, followed by the object which is responsible for the input data member functions, and through the object calls another member function according to the input data sequence output.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
counter.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.