登录
首页 » Visual C++ » 6_1

6_1

于 2014-10-20 发布 文件大小:4662KB
0 87
下载积分: 1 下载次数: 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)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • matlabkalman
    kalman的学习资料 很好的东西 一起学习吧(kalman learning materials good stuff)
    2014-10-27 16:01:07下载
    积分:1
  • m_image
    VC6.0与MATLAB2007a的接口程序 (VC6.0 and the interface program MATLAB2007a)
    2009-05-25 15:49:48下载
    积分:1
  • Plotting_Tutorial_New1
    Plot tutorial is using to calculate in Histogram Matlab
    2013-12-08 13:27:43下载
    积分:1
  • Digital-filtering-experiment
    由设计要求可知,wp<=0.2π,允许误差幅度小于1dB,ws>=0.3π内衰减应大于15dB。为了验证数字滤波器的实际滤波功能,设计程序时,把输入序列定为验证函数x(t)=4sin(100πt)以及x(t)=4sin(200πt)和x(t)=4sin(400πt)。又因为Ts=1.25ms,T=80ms,故采样点为64,即N=64,所以当M=6,可以同时调试并验证程序的滤波功能。(Seen by the design requirements, wp < = 0.2π, allow a margin of error of less than 1dB, ws> = 0.3π within attenuation greater than 15dB. In order to verify the actual filtering function of the digital filter design program, the input sequence as validation function x (t) = 4sin (100πt) and x (t) = 4sin (200πt) and x (t) = 4sin (400πt) . And because Ts = 1.25ms, T = 80ms, so the sampling points is 64, that is N = 64, so when M = 6, can debug and validate filtering program.)
    2014-12-24 09:34:43下载
    积分:1
  • TurboSim
    卷积码译码器,采用sova算法译码(Convolutional Decoder, decoding algorithm used SOVA)
    2005-02-24 02:58:18下载
    积分:1
  • MATLAB
    同步电机模型的MATLAB仿真.........(Synchronous motor model simulation of MATLAB .........)
    2009-06-04 10:38:34下载
    积分:1
  • LFM
    该程序可以用于产生LFM信号,并输出在理想和加噪情况下分别经过匹配滤波器后的结果。(The program can be used to generate LFM signal, and outputs the noise in the ideal case and processing each of the results after the matched filter.)
    2013-12-14 15:56:00下载
    积分:1
  • 1822
    ebook for learning c++
    2013-12-24 05:02:21下载
    积分:1
  • railroad-rush-hour
    实现火车的调度,即将无需的乱的火车,重新调度成有序的(Realization train scheduling, without the chaos of the train is about to re-scheduled to orderly)
    2014-12-09 19:44:18下载
    积分: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
  • 696518资源总数
  • 104384会员总数
  • 26今日下载