-
lagrange
实现拉格朗日插值,和用拉格朗日插值拟合函数(Lagrange interpolation to achieve, and the fitting function with the Lagrange interpolation)
- 2010-11-09 15:48:14下载
- 积分:1
-
6_1
1. 定义一个抽象学生类CStudent,它具有公有成员函数Average(),该函数用于计算学生的平均分,函数为虚函数;定义一个文科学生类CStudentLiberalArts,它是类CStudent的派生类,并以公有方式派生,它具有的成员有:
1) 保存英语、政治、数学、地理和历史、美术成绩的整形成员变量;
2) 设置上述变量的公有成员函数;
3) 输出上述变量的公有成员函数;
4) 公有的成员函数Average()用于计算学生的平均分;
定义一个理科学生类CStudentScience,它是类CStudent的派生类,并以公有方式派生,它具有的成员为:
1) 保存英语、物理、数学、化学和计算机、程序设计成绩的整形成员变量;
2) 设置上述变量的公有成员函数;
3) 输出上述变量的公有成员函数;
4) 公有的成员函数Average()用于计算学生的平均分;
编写主函数,并测试以下内容:
1) 定义一个CStudent的指针数组pStu,数组长度为4;
2) 动态创建2个文科学生的对象,地址存于pStu数组的0-1个元素内;
3) 动态创建2个理科学生的对象,地址存于pStu数组的2-3个元素内;
4) 利用while循环调用数组里每个元素的计算平均成绩操作;
释放动态分配的空间,确保必要的析构函数能被调用。
(1 define an abstract class student CStudent, it has a public member function Average (), this function is used to calculate the student s average points function as virtual function definition of a liberal arts student class CStudentLiberalArts, it is the class CStudent derived class, and public be derived, which has members are:
1) Save English, shaping member variables politics, mathematics, geography and history, art achievements
2) Set the above variables public member function
3) public member function of the output of the variable
4) public member function Average () is used to calculate the average student s points
The definition of a science student class CStudentScience, it is the class CStudent derived class, and public manner derived, which has members as follows:
1) Save English, physics, mathematics, chemistry and computer programming achievement shaping member variables
2) Set the above variables public member function
3) public member function of t)
- 2014-10-20 15:29:16下载
- 积分:1
-
power
full bridge tamam pol and power electric
- 2013-12-10 22:33:00下载
- 积分:1
-
lasso
Lasso变量选择方法创始人的经典代码,内含多个源代码,每个可单独运行(Lasso variable selection method, founder of the classical code, containing more than one source code can be run separately for each)
- 2010-09-03 22:23:33下载
- 积分:1
-
lsarma
本程序给出了最小二乘的ARMA模型的功率谱估计方法(This procedure gives the least squares of the ARMA model of power spectrum estimation methods)
- 2008-05-21 11:00:26下载
- 积分:1
-
Sensor-fault-
这是一篇很好的关于风力发电的资料,希望对大家有所帮组。(good material)
- 2013-07-14 20:08:49下载
- 积分:1
-
VM_Quantification_of_MHV_cavitation_v13_freq_doma
matlab code is very good for health and wealth
- 2013-01-19 17:23:55下载
- 积分:1
-
ofdm
ofdm and its use and how to simulink it in matlab
- 2011-11-19 15:26:37下载
- 积分:1
-
xinBY
提取了matlab中的edge函数的部分功能(Extracted in the edge function matlab some functions)
- 2009-12-09 18:18:21下载
- 积分:1
-
caozuo
用matlab语言 分别判断出三个圆的圆心,并且求出这三个圆之间的距离(Matlab language were used to determine three of the center circle, and obtained the three round distance between)
- 2008-07-07 13:34:19下载
- 积分:1