CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 文档资料 软件工程

文件名称:213243545

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2012-11-16
  • 文件大小:
    23.82kb
  • 已下载:
    0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

(1)定义一个CPU类,包含等级(rank)、频率(frequency)、电压(voltage)等属性,有两个公有成员函数run、stop,其中rank为枚举类型CPU_ Rank,定义为enum CPU_ Rank(P1 = 1,P2,P3,P4,P5,P6,P7),frequency为单位是MHz的整型数,voltage为浮点型的电压值。观察构造函数和析构函数的调用顺序。

(2)定义一个简单的Computer类,有数据成员芯片(CPU),内存(ram),光驱(cdrom)等等,有两个公有成员函数run、stopo,CPU为CPU类的一个对象,ram为RAM类的一个对象,cdrom为CDROM类的一个对象,定义并实现这个类。

(3)设计一个用于人事管理的People(人员)类。考虑到通用性,这里只抽象出所有类型人员都具有的属性:number(编号),sex(性别),birthday(出生日期),id(身份证号)等等。其中“出生日期”定义为一个“日期”类内嵌子对象。用成员函数实现对人员信息的录人和显示。要求包括:构造函数和析构函数、拷贝构造函数、内联成员函数、聚集。

-(1) the definition of a CPU class, including level (rank), frequency (have), voltage (the) attribute, two public member function, which rank 6), stop for enumeration type CPU_ rank, defined as enum CPU_ rank (P1 = 1, P2, P3, mp4, system, what do, even if have, for the unit is MHz integer, the type of voltage value for floating point. The structures observed function and destructor call sequence.

(2) define a simple Computer class, data members chip (CPU), memory (ram), and cd-rom (cdrom) and so on, has two public member function, stopo 6), the CPU for CPU type of an object, ram for a object of ram, cdrom as an object of cdrom, the definition and realize this class.

(3) to design a used in personnel management personnel of the People (). Considering the versatility, here only abstract out all type personnel have attributes: number (Numbers), sex (sex), yet (date of birth), id (id), and so on. The "date of birth" is defined as a "date" kind of embedded child objects. With the realizati
(系统自动生成,下载前可以参看下载内容)

下载文件列表

第二节/1.txt
第二节/2.txt.txt
第二节/3.txt.txt
第二节/新建 Microsoft Word 文档.doc
第二节/新建文本文档.txt

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com