登录
首页 » Visual C++ » area

area

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

  • WQL1
    1、 某软件公司大约有30名员工,每名员工有姓名、工号、职务等属性,每年都有员工离职和入职。 把所有员工按照顺序存储结构建立一个线性表,建立离职和入职函数,当有员工离职或入职时,修改线性表,并且打印最新的员工名单。 (1, a software company about 30 employees, each employee has a name, job number, position and other attributes, and employee turnover every year recruits. All employees in order to establish a linear table storage structure, the establishment of employment and entry function, when employees leave or entry, the modified linear form, and print the latest list of employees.)
    2014-04-17 18:34:07下载
    积分:1
  • Catch
    屏幕广播,在局域网内同段IP内进行屏幕广播和监控(Catch Computer desk)
    2013-11-08 09:23:45下载
    积分:1
  • Joseph-problem
    有N个小孩围坐成一个圆,从某个小孩开始顺序报数,报到M的小孩从圈子中离开, 从下一个小孩重新开始报数。每报到M相应的小孩从圈子离开, 最后一个离开圈子的小孩为胜者。 (N children sitting in a circle, the start sequence from one child reported the number to report child of M from the circle to leave and re-start from the next child reported number. Registration M corresponding child away from the circle, the last child to leave the circle for the winner.)
    2012-10-22 09:59:34下载
    积分:1
  • sdts2dem
    SDTS to DEM optional (native) format converter(to SDTS DEM optional (native) format conve rter)
    2006-12-20 12:56:18下载
    积分:1
  • conm
    含有成员对象的类的构造函数,派生与继承的体现(Contains the constructor of the class members object, derived with the manifestation of the inherited)
    2012-09-04 12:27:27下载
    积分:1
  • VoIP
    这个是华为的VoIP文档,讲述清晰,值得阅读!(This is Huawei' s VoIP documents, about clarity, it is worth reading!)
    2009-12-06 16:01:08下载
    积分:1
  • RTXWhitePaper-6-09
    Windows操作系统硬实时扩展软件RTX白皮书(Windows operating system RTX white paper)
    2012-01-07 23:12:25下载
    积分:1
  • GATSP
    利用遗传算法优化TSP问题,较好的一个例程,在VC++平台下开发(use GA optimize TSP problem under VC++)
    2010-03-01 16:33:56下载
    积分:1
  • bpsknewnochannel
    实现物理层网络编码的仿真,此为无信道编码环境下实现的(network coding)
    2012-04-12 11:41:55下载
    积分:1
  • c
    c语言课件,适合大一上学期c语言初学者使用。visualc++ 6.0软件环境下运行,c语言为编译语言(c language courseware for freshman last semester c language for beginners. visualc++ 6.0 software operating environment, c language is a compiled language)
    2013-10-21 17:36:41下载
    积分:1
  • 696516资源总数
  • 106927会员总数
  • 1今日下载