文件名称:shiyan
-
所属分类:
- 标签属性:
- 上传时间:2012-12-30
-
文件大小: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/
实验五/Debug/test.obj
实验五/Debug/vc60.idb
实验五/Debug/vc60.pdb
实验五/Debug/实验五.exe
实验五/Debug/实验五.ilk
实验五/Debug/实验五.obj
实验五/Debug/实验五.pch
实验五/Debug/实验五.pdb
实验五/test.cpp
实验五/实验五.cpp
实验五/实验五.dsp
实验五/实验五.dsw
实验五/实验五.ncb
实验五/实验五.opt
实验五/实验五.plg
实验五/client.h
实验五/Debug/
实验五/Debug/test.obj
实验五/Debug/vc60.idb
实验五/Debug/vc60.pdb
实验五/Debug/实验五.exe
实验五/Debug/实验五.ilk
实验五/Debug/实验五.obj
实验五/Debug/实验五.pch
实验五/Debug/实验五.pdb
实验五/test.cpp
实验五/实验五.cpp
实验五/实验五.dsp
实验五/实验五.dsw
实验五/实验五.ncb
实验五/实验五.opt
实验五/实验五.plg
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.