登录
首页 » Visual C++ » area

area

于 2014-02-07 发布 文件大小:10KB
0 169
下载积分: 1 下载次数: 4

代码说明:

  定义一个基类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.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • wirelss_communicattion
    可以实现无线通信,代码简单便于理解,是基于wince平台的(Wireless communications can be achieved, the code simple and easy to understand, is based on the wince platform)
    2008-12-29 20:53:26下载
    积分:1
  • Music
    一款完全免费的音乐播放软件,高精度音质,完美还原听觉。Window Media Player在制作WMA文件时默认启用了"数字版权保护"机制,而要支持这种文件,必须得到微软的官方支持,考虑到手续比较麻烦所以目前还未实现对它的支持。所以在制作WMA文件的时候请尽量不要使用数字版权保护。(My Music)
    2013-08-13 21:47:35下载
    积分:1
  • Opencv2.3-on-VS2008-aVS2010
    open2.3在vs 2008 2010上的配置详细图解,希望能帮到你!!(open2.3 on vs 2008 2010)
    2013-11-04 12:29:55下载
    积分:1
  • DirectX81SDKlibrary
    DirectX8 1SDKlibrary,微软DirectX8的库文件包(DirectX8 1SDKlibrary)
    2020-07-04 19:00:01下载
    积分:1
  • MFC-tab
    MFC中的TAB控件实例编程,带TAB图标(The TAB control instance in the MFC programming with TAB ICONS)
    2021-04-20 15:08:50下载
    积分:1
  • ADVANTECH-Alarm1
    关于台湾研华远程以太网模块上位机控制源代码,具体说明在压缩包里。(On the Taiwan Advantech Ethernet module remote PC control source code, specify the compression bag.)
    2008-07-06 21:07:43下载
    积分:1
  • 4701V1.3
    4730发FM/AM收音完整程序,本人实侧测OK程序(4730 rounds FM/AM radio test OK program)
    2013-04-03 20:38:48下载
    积分:1
  • 卫星开发工具包STK Iridium-STK-orbit
    卫星开发工具包STK,对铱星系统的系统建模分析,三维仿真场景(Satellite Development Kit STK, the Iridium system modeling, 3D simulation scene)
    2013-04-27 11:39:44下载
    积分:1
  • Day
    日期计算 计算日期的天数等等等 简易的日期计算天数(day)
    2009-11-04 21:01:36下载
    积分:1
  • OWNERDRAW_TAB
    实现自绘制标签按钮功能。本程序从CTabCtrl派生出一个CTabCtrlEx控件,用于实现标签控件的自绘制功能,让标签也五花八门吧!(Self-drawing button labels. This procedure CTabCtrl derived from a CTabCtrlEx control, label control for the achievement of self-mapping feature that lets you label a wide variety!)
    2009-07-02 23:59:27下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载