文件名称:shiyan
- 所属分类:
- 书籍源码
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-12-05
- 文件大小:
- 781kb
- 下载次数:
- 0次
- 提 供 者:
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
实现客户机(CLIENT)类。定义字符型静态数据成员ServerName,保存其服务器名称;整型静态数据成员ClientNum,记录已定义的客户数量;定义静态函数ChangeServerName()改变服务器名称。在头文件client.h中定义类,在文件client.cpp中实现,在文件test.cpp 中测试这个类,观察相应的成员变量取值的变化情况。(需要给出main函数代码和运行结果)
完善Body类,将检测胖瘦的标准定义为静态数据成员并设计相应的静态成员函数。(最好给出main函数代码和运行结果)
定义Boat;和Car两个类,二者都有weight属性,定义二者的一个友元函数totalWeight(),计算二者的和。
-Client (CLIENT) class. Static data members of the defined character ServerName, save their server name integer static data members ClientNum, records have been defined by the number of customers the defined static ChangeServerName () function to change the server name. Defined class in the header file client.h in file client.cpp test this class in the file test.cpp observed corresponding member variable values change. (Need to give the main function code and the results) perfecting Body class detect fat, thin, standard definition designed for static data members and static member function. (Preferably main function code and the results is given) defined Boat and Car two categories, both have a weight attribute definition of the two a friend function totalWeight of () calculation and the two.
完善Body类,将检测胖瘦的标准定义为静态数据成员并设计相应的静态成员函数。(最好给出main函数代码和运行结果)
定义Boat;和Car两个类,二者都有weight属性,定义二者的一个友元函数totalWeight(),计算二者的和。
-Client (CLIENT) class. Static data members of the defined character ServerName, save their server name integer static data members ClientNum, records have been defined by the number of customers the defined static ChangeServerName () function to change the server name. Defined class in the header file client.h in file client.cpp test this class in the file test.cpp observed corresponding member variable values change. (Need to give the main function code and the results) perfecting Body class detect fat, thin, standard definition designed for static data members and static member function. (Preferably main function code and the results is given) defined Boat and Car two categories, both have a weight attribute definition of the two a friend function totalWeight of () calculation and the two.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实验五
......\client.h
......\Debug
......\.....\test.obj
......\.....\vc60.idb
......\.....\vc60.pdb
......\.....\实验五.exe
......\.....\实验五.ilk
......\.....\实验五.obj
......\.....\实验五.pch
......\.....\实验五.pdb
......\test.cpp
......\实验五.cpp
......\实验五.dsp
......\实验五.dsw
......\实验五.ncb
......\实验五.opt
......\实验五.plg