-
runPad
电机转子台,断条缩孔的计算等,MATLAB等(Rotor sets, Breaking Shrinkage calculation, MATLAB, etc.)
- 2010-06-22 15:51:06下载
- 积分: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
-
NEW-LEACH-matlab.txt
对经典协议LEACH的改进版本,可以出图3个,对初学很有帮助,大家有兴趣的可以看看。(LEACH agreement on an improved version of the classic, you can plot three, very helpful for beginners, we are interested can look at.)
- 2014-01-20 17:22:06下载
- 积分:1
-
MATLABCodeToCcode
介绍了如何利用Mathh的Realtime Workshop代码生成工具将Simulink模型自动转换成C代码的方法(This paper proposes a method of using the RTW (Real-Time Workshop)code generation tool to convert Matlab to the C code.)
- 2009-09-12 16:51:13下载
- 积分:1
-
bilinerQuard
bilinearquard在matlab中的实现 matlab有限元分析 源程序(bilinearquard implementation in matlab matlab source Finite Element Analysis)
- 2013-11-11 13:46:44下载
- 积分:1
-
associate
说明: 建立关联程序的例子。本程序演示把 .bar 文件与 NotePad 建立关联(establish procedures related examples. The demonstration put procedures. Bar documents associated with the establishment of NotePad)
- 2006-04-25 11:03:45下载
- 积分:1
-
ant
这是一种ANT的旅行商的MATLAB的代码有用请下载(if it help,please go ahead)
- 2014-09-14 18:27:29下载
- 积分:1
-
2DMaxima
在二维空间里有两个点A=(X1,Y1)和B=(X2,Y2),如果X1>X2并且Y1>Y2 ,我们认为A优于B,A是这个集合的最大极值点,在给定的二维空间里的N个点的集合S中,找出最大极值点。(In two-dimensional space, there are two points = A = (X1, Y1) and B (X2, Y2), if the X1 and Y1 > X2 > Y2, we think that A is superior to B, A is the biggest extreme value point of the set, in A given set of N points in the two-dimensional space S, find out the most extreme value point.)
- 2013-12-24 21:02:56下载
- 积分:1
-
ArrayExcel
类似于matlab的数组编辑类(原创)及借用BasicExcel类快速读取读入Excel数据(some class for editing array like in matlab,and read and write to excel with BasicExcel class.)
- 2012-02-10 17:08:24下载
- 积分:1
-
ypz
遗传算法的概念最早是由Bagley J.D在1967年提出的;而开始遗传算法的理论和方法的系统性研究的是1975年,这一开创性工作是由Michigan大学的J.H.Holland所实行。当时,其主要目的是说明自然和人工系统的自适应过程。
(The concept of genetic algorithm by the Bagley JD was first proposed in 1967 and start method of genetic algorithm theory and systematic research in 1975, this pioneering work is undertaken by the University of Michigan JHHolland the practice. At that time, its main purpose is to describe the natural and artificial adaptive process.)
- 2010-12-21 11:12:01下载
- 积分:1