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

6_1

于 2014-10-20 发布 文件大小:4662KB
0 201
下载积分: 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 个回复

  • example4_6
    :滤波 fs=400 采样频率,必须大于两倍基带信号最高频率 ts=1/fs 采样时间间隔 T=5 时间窗大小 t=0:ts:T (hf1=zeros(1,N) hf1(f<=B1&f>=-B1)=1 y1=hf1.*fftshift(y) figure subplot(211) plot(f,abs(fftshift(y))/N,f,hf1, r-- ) axis([-fs/2,fs/2,0,1.2]) title( 原信号频谱 ) xlabel( f /Hz ) subplot(212) plot(f,abs(y1)/N) title( 低通滤波,截止频率90Hz ) xlabel( f /Hz ))
    2010-05-25 20:58:05下载
    积分:1
  • DEA的Matlab程序
    DEA的CCR模型程序及其对偶模型(包括松弛变量)的程序计算(CCR model program and its dual DEA model (including relaxation variables) program calculation)
    2021-02-08 13:49:54下载
    积分:1
  • modu_classify
    以前常有的调制识别程序大多是基于MATLAB的,本程序是基于C语言的实用程序,可以识别AM、FM、DSB、LSB、USB、CW、Noise等模拟调制信号的调制类型,是在实际工程中正在应用的实用程序!(Previous common modulation identification procedures are mostly based on MATLAB, and this program is based on the C language utility can identify the AM, FM, DSB, LSB, USB, CW, Noise and other analog modulation signal modulation type is the actual project utilities are being applied!)
    2009-09-26 19:05:48下载
    积分:1
  • dataliink.c
    计算机网络数据链路选择性重传实验。   设计一个滑动窗口协议,在仿真环境下编程实现有噪音信道环境下两站点之间无差错双工通信。信道模型为8000bps 全双工卫星信道,信道传播时延270毫秒,信道误码率为,信道提供字节流传输服务,网络层分组长度固定为256字节。(Computer network data link selective retransmission experiment. Design of a sliding window protocol in simulation programming environment there is no error duplex communication channel between the noisy environment the two sites. Channel model is 8000bps full-duplex satellite channel, the channel propagation delay 270 ms, channel bit error rate, channel provides a byte stream transmission services, network layer packet length is fixed at 256 bytes.)
    2013-11-26 19:19:51下载
    积分:1
  • 109201293CSharp_MATLAB
    interop between C# and matlab
    2009-05-17 13:21:18下载
    积分:1
  • cache
    The cache manager source code implemented in Windows kernel.
    2009-05-30 14:00:05下载
    积分:1
  • pass
    查看星号密码的代码,比较初级,只是发送一个消息,去掉其密码属性。(View an asterisk password code, compare the primary, only to send a message, remove the password attribute.)
    2010-01-07 01:52:48下载
    积分:1
  • zj2
    说明:  计算电梯分层情况下的各个区间电梯的RTT期望值,并找出最小值,记录下此时的分层方法。(Calculated under the various layered elevator elevator RTT interval expectations, and identify the minimum, record the time of stratification.)
    2010-04-23 09:11:35下载
    积分:1
  • audio-processing-workbench
    本作品基于matlab与vc++混合编程的一个语言信号处理平台,实现了matlab与vc++的接口通信,利用matlab强大的语言信号处理能力,再结合c++语言的强大的算法描述能力,两者取长补短,取得了很好的效果(This work is based on the matlab and vc++ mixed programming, a language signal processing platform, the matlab and vc++ interface communication, use of matlab strong language signal processing capabilities, combined with c++ language' s powerful description of the algorithm ability to both learn from each other, made good results)
    2011-07-26 16:15:51下载
    积分:1
  • cqicm
    基于欧几里得距离的聚类分析,插值与拟合的matlab实现,实现六自由度运动学逆解算法。( Clustering analysis based on Euclidean distance, Interpolation and fitting matlab implementation, Six degrees of freedom to achieve inverse kinematics algorithm.)
    2017-04-17 15:03:40下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载