文件名称:area
-
所属分类:
- 标签属性:
- 上传时间:2014-02-07
-
文件大小:10.36kb
-
已下载: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/area.dsp
area/area.dsw
area/area.ncb
area/area.opt
area/area.plg
area
area/area.dsp
area/area.dsw
area/area.ncb
area/area.opt
area/area.plg
area
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.