- E-mail-address-extraction-tool 实现从文本中提取出邮箱地址
- on-line-BookShop 一个简单的网上书店系统
- linux_driver-v7.0.212 CSR UniFi Linux Driver v7.0 source code for wifi linux and android driver
- depends 是一个查看动态链接库的工具的教程文档
- page 理解内存页面调度的机制
- DetectIDLE Código fuente de aplicación para evitar que una terminal se bloquee por inactividad.
文件名称:4
-
所属分类:
- 标签属性:
- 上传时间:2013-03-16
-
文件大小:1.13kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
描述: 定义表示形状的抽象类及相应的派生类,并实现相关操作符重载。
(1)定义表示形状的抽象类Shape:
添加公有成员函数double Area(),用于计算形状面积;定义为纯虚函数;
添加公有成员函数void Show(),用于显示形状信息,定义为纯虚函数;
定义虚的析构函数;
重载比较操作符:==、>和<,用于比较两个形状面积的大小关系,返回值类型为bool,可以定义为成员函数或友元函数。
-Descr iption: Definition represent the shape abstract class and derived class, and relevant operator overloading. (1) defines the shape abstract class Shape: add a public member function double Area (), is used to calculate the shape of the area defined as a pure virtual function Add public member function void Show () is used to display the shape information, defined as pure virtual function defined virtual destructor overloaded comparison operators: ==> and < for the relationship of the size of the area of two shapes, the return value type bool can be defined as a member function or a friend function.
(1)定义表示形状的抽象类Shape:
添加公有成员函数double Area(),用于计算形状面积;定义为纯虚函数;
添加公有成员函数void Show(),用于显示形状信息,定义为纯虚函数;
定义虚的析构函数;
重载比较操作符:==、>和<,用于比较两个形状面积的大小关系,返回值类型为bool,可以定义为成员函数或友元函数。
-Descr iption: Definition represent the shape abstract class and derived class, and relevant operator overloading. (1) defines the shape abstract class Shape: add a public member function double Area (), is used to calculate the shape of the area defined as a pure virtual function Add public member function void Show () is used to display the shape information, defined as pure virtual function defined virtual destructor overloaded comparison operators: ==> and < for the relationship of the size of the area of two shapes, the return value type bool can be defined as a member function or a friend function.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
4.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.