-
b
说明: 定义一个类SortArray继承自MyArray,在该类中定义函数sort实现排序功能。
定义一个类ReArray继承自MyArray,在该类中定义函数reverse实现逆转功能。
定义一个类AverArray继承自MyArray,在该类中定义函数Aver实现求解整数的平均值。
定义NewArray类,同时继承了SortArray、ReArray和AverArray,使得NewArray类的对象同时具有排序、逆转和求平均值的功能。在继承的过程中声明为虚基类,体会虚基类在解决二义性问题中的作用。
(Define a class SortArray inherited from MyArray, defined in the class sorting function sort implementation. Define a class ReArray inherited from MyArray, define the function in reverse to achieve such reversal function. Define a class AverArray inherited from MyArray, defined in the class to solve integer function Aver achieve the average. Defined NewArray class, and inherits SortArray, ReArray and AverArray, making the object of both NewArray class sorting, reversing, and the mean value of the function. In the process of succession declared as virtual base classes, virtual base class experience in resolving ambiguities of the role.)
- 2010-06-02 02:13:03下载
- 积分:1
-
LStack
堆栈实现C++,以VC++环境为准——逍遥大洋至上(The stack of the C++, VC++ environment will prevail)
- 2012-03-26 08:35:26下载
- 积分:1
-
java数据结构方面的,关于二叉树,很简单、实用
java数据结构方面的,关于二叉树,很简单、实用-data structure, for the binary tree, a very simple, practical
- 2023-05-20 06:25:03下载
- 积分:1
-
Estruc_Proyect
good stacks and queues example
- 2015-04-13 04:02:19下载
- 积分:1
-
矩阵运算
Matrix operations
solution of AX=B
Jordan and newton Methods
- 2022-03-03 02:05:43下载
- 积分:1
-
04huffman_a
根据最常用的链表法进行huffman编码,可以手工预制权重,例如n=8的时候即可以在文件中写入,输出相应的编码结果(According to the most commonly used method of Chain Huffman coding, manual can be prefabricated weight, For example, n = 8 when it is written in the document, the output corresponding to the coding results)
- 2007-05-29 19:15:26下载
- 积分:1
-
本书是作者编程经验的结晶,由发表在杂志上的专栏文章构成,每一章内容相对独立,但都是编程过程中的有机组成部分。本书内容包括问题定义、算法、数据结构、程序验证与测试...
本书是作者编程经验的结晶,由发表在杂志上的专栏文章构成,每一章内容相对独立,但都是编程过程中的有机组成部分。本书内容包括问题定义、算法、数据结构、程序验证与测试、程序优化与效率问题,以及这些技巧在排序、查找和字符串处理等方面的几个实际应用。本书每章末尾都附带有相关内容的问题,附录中给出了一些问题的提示和解答。仔细思考问题或与同事进行讨论,可以巩固所学知识,将作者的经验应用到自己的编程实践中。-This book is the author of the crystallization of programming experience, published in the journal by the column consists of the contents of each chapter is relatively independent, but they are in the process of programming an integral part. The book includes problem definition, algorithms, data structures, program verification and testing, process optimization and efficiency issues, as well as these skills in sorting, string search and deal with several aspects of practical application. The book comes at the end of each chapter has relevant content issues, the appendix gives some tips and answers to the problem. Think carefully about questions or discussion with colleagues, you can consolidate the knowledge acquired will be applied to the author
- 2022-02-04 06:11:35下载
- 积分:1
-
程序员的SQL金典
程序员的SQL金典程序员的SQL金典程序员的SQL金典程序员的SQL金典程序员的SQL金典程序员的SQL金典程序员的SQL金典
- 2022-06-14 00:48:24下载
- 积分:1
-
HFMModel
构造哈夫曼树,并构造字符的哈夫曼编码,以凹入表(层次表)的形式显示哈夫曼树。(Huffman tree structure and construct characters Huffman encoding to recessed table (table level) displayed in the form Huffman tree.)
- 2013-09-04 22:32:53下载
- 积分:1
-
最小二乘逼近(最小
最小二乘逼近(least-squares approximation)得到一组离散(discrete)数据点的近似函数(approximating function),实验数据往往是用最小二乘逼近得到一条秘密曲线(curve fitting)。下面概述的是最小二乘近似作为多项式的近似函数,除了多项式外,指数的几个右公式也可以作为类似的函数使用。关于最小平方近似的计算原理,请参考市场上的数值分析书籍
- 2022-06-02 22:53:44下载
- 积分:1