文件名称:area
- 所属分类:
- 汇编语言
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2014-02-07
- 文件大小:
- 10kb
- 下载次数:
- 0次
- 提 供 者:
- 崔*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
定义一个基类MyGraph,要求有一个纯虚函数double Area()=0。从基类派生一个圆类Circle和矩形类Rectangle,再由Rectangle类派生出Square类,分别给出Area()实现。
重载“>>”,实现对图形信息的输入。在主函数中计算三种形状的面积,并显示输出。 -Define a base class MyGraph, requires a pure virtual function double Area () = 0. Derive a circle and a rectangle class Rectangle Circle class from the base class, and then by Square Rectangle class derived class, are given Area () implementation. Reload " > > " to achieve the input of graphical information. Calculate the shape of the three main functions in the area, and display output.
重载“>>”,实现对图形信息的输入。在主函数中计算三种形状的面积,并显示输出。 -Define a base class MyGraph, requires a pure virtual function double Area () = 0. Derive a circle and a rectangle class Rectangle Circle class from the base class, and then by Square Rectangle class derived class, are given Area () implementation. Reload " > > " to achieve the input of graphical information. Calculate the shape of the three main functions in the area, and display output.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
area\area.cpp
....\area.dsp
....\area.dsw
....\area.ncb
....\area.opt
....\area.plg
area