登录
首页 » Visual C++ » area

area

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

  • getversion
    本程序是一个获取windows系统的Version的C++程序(This program is a Get the windows system Version C++ program)
    2012-11-16 16:47:19下载
    积分:1
  • 七段数码显示的数字时钟
    模拟七段数码显示数字时钟,自定义CDigitalClock继承自CStatic类(Analog seven digital display, digital clock, custom CDigitalClock inherited from the CStatic class)
    2017-08-17 22:52:21下载
    积分:1
  • BC_HVAC
    BC_HVAC一个LNC DDE的例程,很值得下载(LNC DDE a BC_HVAC the routine, it is worth downloading)
    2009-06-22 16:35:53下载
    积分:1
  • VSP_SE
    说明:  自己编写的一个VC++程序,打开可执行程序后可以读取wave文件,此时程序将在客户区绘制波形图;之后可以计算短时能量、短时过零率和自相关函数,并且在客户区依次显示函数图像。(own VC prepared by a procedure to open executable wave after reading documents, this process will draw customers District waveform diagram; after short-term energy can be calculated, short-term rates and zero autocorrelation function, District customers in the sequence of images function.)
    2006-05-14 18:53:35下载
    积分:1
  • Cdraw
    画图源码,VC平台开发,MFC框架实现一个画图程序,实现Windows的画图功能,并将扩展其功能(Source drawing, VC-platform development, the MFC framework to achieve a paint program, Windows drawing functions, and to extend its functionality)
    2012-03-26 22:39:29下载
    积分:1
  • csexamsys
    考试程序”客户端/服务器模式”,初学网络编程的人看了一定有所收获(C/S Program)
    2009-10-27 13:57:55下载
    积分:1
  • PL0-The-compiler
    一、完成的实验内容及说明 基本内容 (1)扩充赋值运算:+ 和 - (2)扩充语句 REPEAT <语句序列> DOWHILE <条件> 其中,<条件>是循环条件,即条件成立时,重复执行循环体的< 语句序列> 选做内容 (1)增加运算:++ 和 。 (2)增加类型:① 字符类型; ② 实数类型。 (3)扩充函数:① 有返回值和返回语句;② 有参数函数。 (4)增加一维数组类型 (A, the experiment content and complete The basic content Operation: (1) expand the assignment+ and (2) REPEAT expansion statements < > statement sequence Conditions of DOWHILE < > Among them, the conditions of < > is loop condition, namely conditions founded, repeat the loop body < > statement sequence Choose to do content (1) operation:++ and . (2) types: (1) character types (2) real types. (3) the expansion of function: (1) has a return value and return statement (2) a parameter function. (4) increase a one-dimensional array type)
    2020-07-16 22:38:54下载
    积分:1
  • code
    自己写的TMS320F28335代码,内含DA、AD、液晶驱动、峰值检测、频率采集等程序,供参考(TMS320F28335 write their own code, containing DA, AD, LCD driver, peak detection, frequency acquisition procedures for reference)
    2015-06-23 11:30:14下载
    积分:1
  • Visual_C6.0
    实用Visual_C6.0教程(源码) 英文VC++实用Visual_C6.0教程(this file implement many useful VC++ little skill)
    2015-07-19 18:39:48下载
    积分:1
  • Stocks-query
    VB编写股票行情小工具MiniStock(MiniStock source)
    2013-11-07 15:28:43下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载