文件名称:213243545
介绍说明--下载内容均来自于网络,请自行研究使用
(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
(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
......\2.txt.txt
......\3.txt.txt
......\新建 Microsoft Word 文档.doc
......\新建文本文档.txt