登录
首页 » Visual C++ » area

area

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

  • 2
    说明:  this is my first program that whil share with you
    2009-11-17 15:03:03下载
    积分:1
  • FAT32
    说明:  FAT32文件系统的详细描述,很好的文章。(FAT32 file system, a detailed description of a very good article.)
    2009-08-26 16:15:12下载
    积分:1
  • QGIS--qt
    qgis 地图二次开发,为初学者尽快掌握地图开发。对大家有很大帮助(Two the development of QGIS map, for beginners to quickly master the map development. There is a great help to you)
    2015-01-09 11:57:54下载
    积分:1
  • PMS
    本系统模拟一个计算机病员监护系统(Patient Monitoring System, PMS)。该系统随时接受并监视病人的生理信号(脉搏、体温、血压、心电图等),定时记录病人情况以形成患者日志,当某个病人的生理信号超出医生规定的安全范围时向值班护士发出警告信息。当护士需要时还可以要求系统打印出某个指定病人的病情报告。 本系统全部代码采用MFC在Visual Studio .Net环境中编写。患者所有信息保存在Access数据库(PMS.mdb)中。 (A computer simulation of the system Patient Monitoring System (Patient Monitoring System, PMS). The system is ready to accept and monitor the patient s physiological signals (pulse, temperature, blood pressure, ECG, etc.), regularly records the condition of patients to form a log of patients, when a patient s physiological signals beyond the scope of the required safety of doctors to the nurses on duty to issue a warning message . When nurses need also can ask the system print out a report of the designated patient. All the system code using MFC in Visual Studio. Net environments prepared. Patients all the information stored in the Access database (PMS.mdb) in.)
    2007-11-15 10:24:42下载
    积分:1
  • abc
    基于MFC在编辑框中实现文件的打开、查找和关键字搜索定位等功能(Based on MFC it realized the openning and searching of files or texts in your edit box and so on )
    2013-12-04 21:04:59下载
    积分:1
  • The_introduction_of_utilization_for_header_files_i
    该文件是一个PDF文档,介绍了C语言头文件使用中普通人都会犯的一些错误,并以实际的例子辅以说明,非常实用!(The file is a PDF document that describes the use of C language header files are ordinary people committed some errors, and supplemented with practical examples that, very useful!)
    2010-12-20 15:31:11下载
    积分:1
  • 21819724325200797837231671038
    VC系列例子(VC series of Examples)
    2008-03-11 14:12:08下载
    积分:1
  • sequence
    我用VC++实现程序的顺序执行,即前驱关系 从P1-->P2前驱图的顺序执行的实现(sequence)
    2021-01-12 21:58:48下载
    积分:1
  • efsl-0.3.6
    嵌入式文件系统,efsl is This file contains all the functions dealing with the FAT (in a Microsoft FAT filesystem)(embeded file system)
    2014-01-08 16:47:32下载
    积分:1
  • 111019
    拓扑,直接插入,冒泡,简单选择,希尔,快速,堆排序(Topology, Direct insertion, Bubble, simple selection, Hill, Quick, heap sort)
    2018-10-27 01:17:58下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载