Application of general program design techniques to teaching of traditional data structures 泛型程序设计技术在传统数据结构教学中的应用
Generic programming is a programming paradigm which is supported by the c + + template language mechanism 泛型程序设计是c + +语言通过模板机制支持的一种程序设计方法。
Researched the transforming rule of transforming apla ' s generic programs to it ' s equivalent c + + - programs . 5 研究将apla语言中的泛型程序设计机制转换为等价c + +语言程序的方法。
First , in apla , tree , graph , set , list are pre - declared while in delphi they are not . second , there are obvious mechanisms for generic programming in apla while delphi does n ' t have them 相反, objectpascal中不能直接使用树、图、集合、序列等组合类型,而且没有明显的反映泛型程序设计思想的语法机制。
We import the generic programming theory into the c + + class library through studying the idea of generic programming , achieve the generic programming in apla program . 4 . we also test the c + + class library by many examples what are transformed by apla - c + + system 通过对泛型程序设计思想的研究,在我们构造的c + +类库中引进了泛型程序机制,实现了apla程序的类型参数化,同时也提高了c + +类库的可重用程度; 4
Based on the deep study of generic programming paradigm , this paper analyzes and describes the refactor applied to generic program . a catalog of refactorings that people apply to generic program and their corresponding preconditions is identified and described formally in this paper . furthermore , this paper presents the design and implement of a tool , cpprefactory , which can perform some of the refactorings in the proposed list 本文在对泛型程序设计深入研究的基础上,对泛型程序重构进行了分析和研究,提出并形式化描述了一组适用于泛型程序设计的重构操作以及对应的前提条件,设计并实现了支持泛型程序重构的自动化工具的原型cpprefactory 。