登录
首页 » Visual C++ » area

area

于 2014-02-07 发布 文件大小:10KB
0 183
下载积分: 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 个回复

  • EpsonPrintDemo
    用于搜索USB驱动,找到USB打印机,并发送命令 本例子发的是epson的打印换行命令,这个命令基本够用了,绝对有用(Used to search the USB drive, find a USB printer, and send the command)
    2020-09-01 19:38:08下载
    积分:1
  • vc++bp
    神经网络的BP算法,可以帮助识别汉字等其他文字(BP neural network algorithm, can help identify the characters and other text)
    2008-12-09 19:03:15下载
    积分:1
  • MFCPPT
    MFC编程各章课件,介绍了MFC编程的基础知识。(MFC PROGRAMMING)
    2010-07-05 14:40:09下载
    积分:1
  • sale
    c#编写的销售管理系,合适初学者,好好的例子(c# write sales management system, suitable for beginners, a good example)
    2014-04-09 17:59:10下载
    积分:1
  • THUYSG
    AT指令编辑计算机跟手机通讯,可收发短信()
    2018-06-12 17:07:47下载
    积分:1
  • aawmutual
    说明:  此为windows风格的单文档窗体,比较通用欢迎在此基础上,加一改进,创造出更好的界面来(This is a single document form with windows style, which is generally welcome to add an improvement to create a better interface.)
    2018-12-24 03:36:53下载
    积分:1
  • Peak_power_measure
    使用 labview 编写的控制界面,控制实验室的光谱仪,测量峰值的光功率(spectrum controller)
    2013-05-09 12:02:38下载
    积分:1
  • PCISample
    PCI驱动开发实例,基于微软最新的驱动开发系统WDF(Examples of PCI-driven development, based on Microsoft' s latest driver development system WDF)
    2010-01-28 21:54:41下载
    积分:1
  • SPP
    GPS单点定位程序,包含O文件N文件读取,卫星坐标计算,用户坐标计算(GPS PPP)
    2020-07-02 12:20:01下载
    积分:1
  • changereg
    用vc++编写的修改注册表示例程序源码,适用于windows 2000系统(vc++ modify the registry sample program applies to windows 2000 system)
    2012-10-30 10:32:21下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载