文件名称:test
- 所属分类:
- 磁盘编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-12-05
- 文件大小:
- 1.04mb
- 下载次数:
- 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、stop。cpu为CPU类的一个对象,ram为RAM类的一个对象,cdrom为CDROM类的一个对象,定义并实现这个类,观察这些类的构造函数和析构函数的调用顺序。
3) 定义一个Body类,拥有身高、体重等数据,能够根据身高、体重检测身体状况,要求设计相应的函数成员和构造函数。
-1) the definition of a CPU class level (Rank), frequency (frequency), voltage (voltage) attributes, two public member function run, stop. Among them, rank the enumeration type CPU__Rank, defined as the enum CPU_Rank {P1 = 1, P2, P3, P4, P5, P6, P7} frequency in units of MHz integer, voltage is the voltage value of the floating-point type. Observe the order in which the constructor and destructor calls. 2) the definition of a simple class of Computer, have data members chip (CPU), memory (ram), CD-ROM drive (cdrom), two public member function run, stop. cpu is an object like the CPU, ram RAM like an object cdrom for the the CDROM class of an object, to define and implement this class, observe these classes constructor and destructor calling sequence. 3) the definition of a Body class has data such as height, weight, based on height, weight detection, physical condition, to design the corresponding function members and constructors.
2) 定义一个简单的Computer类,有数据成员芯片(cpu)、内存(ram)、光驱(cdrom)等等,有两个公有成员函数run、stop。cpu为CPU类的一个对象,ram为RAM类的一个对象,cdrom为CDROM类的一个对象,定义并实现这个类,观察这些类的构造函数和析构函数的调用顺序。
3) 定义一个Body类,拥有身高、体重等数据,能够根据身高、体重检测身体状况,要求设计相应的函数成员和构造函数。
-1) the definition of a CPU class level (Rank), frequency (frequency), voltage (voltage) attributes, two public member function run, stop. Among them, rank the enumeration type CPU__Rank, defined as the enum CPU_Rank {P1 = 1, P2, P3, P4, P5, P6, P7} frequency in units of MHz integer, voltage is the voltage value of the floating-point type. Observe the order in which the constructor and destructor calls. 2) the definition of a simple class of Computer, have data members chip (CPU), memory (ram), CD-ROM drive (cdrom), two public member function run, stop. cpu is an object like the CPU, ram RAM like an object cdrom for the the CDROM class of an object, to define and implement this class, observe these classes constructor and destructor calling sequence. 3) the definition of a Body class has data such as height, weight, based on height, weight detection, physical condition, to design the corresponding function members and constructors.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实验四
......\Debug
......\.....\vc60.idb
......\.....\vc60.pdb
......\.....\实验4.obj
......\.....\第一次实验1.exe
......\.....\第一次实验1.ilk
......\.....\第一次实验1.pch
......\.....\第一次实验1.pdb
......\实验4.cpp
......\第一次实验1.dsp
......\第一次实验1.dsw
......\第一次实验1.ncb
......\第一次实验1.opt
......\第一次实验1.plg