-
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
-
MyFftTest
实现快速傅里叶变换的控制台程序,对用户输入的数组做变换。(Fast Fourier transform console program, to an array of user input to make change.)
- 2015-02-07 11:19:03下载
- 积分:1
-
QPSK
10mQPSK C++代码 rrc滤波(10mQPSK C++ rrc)
- 2013-12-25 10:13:16下载
- 积分:1
-
combine_vc_with_matlab
如何在VC程序中使用MATLAB的C数学库 这是介绍在VC程序中使用MATLAB的C数学库,可以将vc和matlab结合起来。(this is a paper intruduce how to combine vc to matlab)
- 2010-09-28 23:47:53下载
- 积分:1
-
Text1
c++产生高斯白噪声,可用于通信或信号传输系统中,白噪声产生的程序调用(c++ generated Gaussian white noise, can be used for communication or signal transmission system, the white noise generated by the procedure call)
- 2008-04-19 22:34:34下载
- 积分:1
-
TheResearchofSpatialSpectrumEstimationAlgorithminS
智能天线技术是第三代移动通信系统的关键技术之一,也是国内外热门的研究课题。由于无线移动通信的信道传输环境具有复杂性和不确定性,存在多径衰落和时延扩展,因此造成了符号间串扰、同信道干扰、多址干扰等,这些干扰降低了链路性能和系统容量,智能天线技术是解决以上问题的方法之一。 本文首先阐述了智能天线和白适应波束形成的基本理论,然后对自适应算法进行了研究。对一些基本的自适应算法最小均方算法、恒模算法及递推最小均方算法进行了分析讨论,用计算机仿真的结果论证了算法的性能。针对相干干扰介绍了空间平滑技术,对传统的相干干扰抑制方法-空间平滑法进行了分析,采用改进算法有效降低了空间平滑算法的运算量。对信号波达方向(DOA)的估计是智能天线研究的另一关键问题。第四章在介绍了阵列信号处理方法的基础上,先简单介绍了Bartlett、Capon、MUSIC等空间谱估计算法,分析了信源数目过估计与欠估计情况下的MUSIC算法性能,提出一种改进算法,在信源数目有误差的情况下该算法的性能良好。第五章针对多径干扰环境,在分析MMUSIC算法的基础上,本文提出了基于低秩矩阵逼近法的改进MUSIC算法(In this paper, firstly, the author illustrates the principles of smart antenna and adaptive beam forming, and then introduces some typical adaptive algorithms, the LMS ,CMA and RLS algorithms are analyzed and discussed and simulate them in the computer to prove their capability. but they have the disadvantage of high complexity, so they are not fit for practice. The paper analyses the conventional method rejecting spatial smoothing coherent interfering signals, which is spatial smoothing technique)
- 2009-07-02 22:43:06下载
- 积分:1
-
ctwmcmcbridge
file dll very important to run the file spike under matlab code.
- 2010-12-14 14:55:55下载
- 积分:1
-
The-coding-principle-of-courseware-
详细介绍了编码原理的基础知识,是编程的入门级必备教材(Details the basics of coding theory, is an essential textbook entry-level programming)
- 2013-12-23 19:20:12下载
- 积分:1
-
Learn_Matlab
Matlab7.0,英文版的,讲的都是基础,适合初学者入门,很不错的资料。(Matlab7.0, the English version of, say are the basis of entry for beginners, very good information.)
- 2009-06-22 14:21:38下载
- 积分:1
-
meizhizhibiao
美股实时指数 在副图窗口,方便操作与美元有关的相关产品(US stock index for MT4)
- 2014-11-21 22:18:24下载
- 积分:1