首页 | 本学科首页   官方微博 | 高级检索  
     

C++教学中泛型的概念和应用探讨
引用本文:高大鹏,王双喜.C++教学中泛型的概念和应用探讨[J].工业控制计算机,2014(10):92-93.
作者姓名:高大鹏  王双喜
作者单位:商丘学院,河南 商丘,476113
摘    要:对C++教学中的泛型概念和使用进行了探讨,首先通过一个Stack类的例子引出泛型的概念,然后分析了泛型的优缺点并具体分析了模板函数和模板类的具体应用。最后对泛型的程序库STL进行了介绍。

关 键 词:泛型  模板函数  模板类

ExpIore of Concept and AppIication of Generic in C++ Teaching
Abstract:The concept and use of generic in the C++ teaching are discussed in this paper.Firstly,the example of the Stack class leads to the generic,and then analyzes the advantages and disadvantages of the generic and specific analysis the specific application of template function and template class.Finally,the STL is introduced in this paper.
Keywords:generic  tempIate function  tempIate cIass
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号