登录
首页 » Visual C++ » area

area

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

  • 1w
    说明:  这是一个用C++编写的简单的图书管理,程序设计较为简单,对于初学者是个不错的例子。 (This is a C++ Prepared a simple library management, program design relatively simple, for beginners is a good example.)
    2009-01-02 22:43:21下载
    积分:1
  • VC.NET
    vc++.net精彩百例代码。比较好的,比较经典的例子。(vc++. net wonderful 100 cases of the code. Better, more classic example.)
    2010-03-11 15:36:05下载
    积分:1
  • Turn
    GIS专业入门必修课-多边形左转算法,首先在屏幕上点取点,后连接三角形,最后自动形成多边形。(GIS professional entry courses- turn left polygon algorithm, the first check point on the screen points, after connecting the triangle, and finally form a polygon automatically.)
    2008-03-20 01:30:01下载
    积分:1
  • 3d_data
    一些三维点云的pcd文件,用于研究三维点云的(3D data)
    2016-03-12 21:18:15下载
    积分:1
  • senda-recv-file
    socket 客户端和服务端发送和接收文件的源代码(the source code of socket in order to send and receive file)
    2015-05-12 10:37:50下载
    积分:1
  • tuoguanWindows
    用托管C++开发Windows表单 vc++6.0(with Managed C vc Windows Forms 6.0)
    2006-05-22 21:13:14下载
    积分:1
  • client_udp
    网络通讯:UDP客户端的工程源代码,已经测试通过(Network Communication: UDP client' s project source code, has been tested)
    2010-10-14 12:32:21下载
    积分:1
  • 55
    [refer]http://www.installaide.com/Images/ats.jpg[/refer] AtScript 是类似于VBScript的脚本语言,无需组件环境. 易学易用,如果您已了解 Visual Basic 或 Visual Basic for Applications (VBA)或VBScript,就会很快熟悉 VBScript。即使您没有学过 Visual Basic,只要学会 VBScript,就能够使用所有的 VBScript 语言进行程序设计。
    2010-03-07 09:55:51下载
    积分:1
  • HC-05-bluetooth
    HC-05蓝牙模块的使用,包括全部参数,外部电路搭建,AT指令等(HC-05 Bluetooth module to use, including all parameters, the external circuit to build, AT commands, etc. )
    2011-10-24 21:14:11下载
    积分:1
  • hashkey
    利用哈希运算产生服务端和客户端的通信密钥( Produces the service end and the customer end correspondence key using the Hasche operation )
    2004-07-08 10:27:55下载
    积分:1
  • 696516资源总数
  • 106457会员总数
  • 15今日下载