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

6_1

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

  • hm-10
    首先确认安卓手机硬件的蓝牙模块是否支持蓝牙4.0. (手机硬件模块不支持的话,软件做的在正确也连不上!) 2. 系统升级到4.3 或更新版本 3. 资料包内的 HMBLEComAssistant.rar 可用于测试 收发(AT+BAUD0 AT+NAMEAC AT+PASS000000 //必须输入满6位 AT+TYPE1 AT+ROLE0)
    2015-04-01 21:54:25下载
    积分:1
  • bianyuanjiance
    边缘检测,用matlab编程。边缘检测是图像处理和计算机视觉中的基本问题,边缘检测的目的是标识数字图像中亮度变化明显的点。图像属性中的显著变化通常反映了属性的重要事件和变化。(Edge detection, using matlab programming. Edge detection is an image processing and computer vision in the basic problems, edge detection is to identify the purpose of the digital image brightness variations obvious point. Image attribute significant changes usually reflect important events and changes in properties.)
    2014-08-27 10:34:19下载
    积分:1
  • manual
    E2LSH代码最全面的介绍,里面详尽的介绍了每一个函数的作用(E2LSH code for the most comprehensive introduction, which describes in detail the role of each function)
    2014-11-24 19:09:40下载
    积分:1
  • poleo-de-datos
    an a dedicated hyperterminal
    2014-02-04 00:25:11下载
    积分:1
  • Matlab-source-numerical-processing
    matlab数值处理源程序,绝对值得下载的源码好程序(Matlab source numerical processing)
    2013-11-12 12:16:36下载
    积分:1
  • openGL
    分别用普通构建方式和显示列表对物体进行绘制,实现各种复杂的交互控制(Were built with ordinary ways and display a list of objects to draw, to achieve a variety of complex interactive control)
    2014-02-17 20:00:17下载
    积分:1
  • fengking_v57
    感应双馈发电机系统的仿真,基于欧几里得距离的聚类分析,粒子图像分割及匹配均为自行编制的子例程。( Simulation of doubly fed induction generator system, Clustering analysis based on Euclidean distance, Particle image segmentation and matching subroutines themselves are prepared.)
    2017-05-09 15:24:14下载
    积分:1
  • MATLAB
    多种MATLAB用于图像处理的代码,提高大家的编程水平(A wide range of MATLAB code for image processing, improve the level of U.S. programming)
    2009-03-21 22:01:14下载
    积分:1
  • 3
    说明:  matlab 中很实用的源代码3:13.直方图阈值法 16 14. 自动阈值法:Otsu法 18 15.膨胀操作 19 16.腐蚀操作 20(Practical source code of matla)
    2015-04-20 16:27:06下载
    积分:1
  • Radial_Power_Flow
    load flow in redial distribution network
    2012-11-22 03:04:29下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载