登录
首页 » Visual C++ » area

area

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

  • tong_xun_lu
    简易通讯录,vc+MFC ODBC+acess环境,非常简单易用,也是学习vc+MFC ODBC+acess设计的入门程(simple correspondence, vc MFC ODBC acess, very simple to use, also learning vc MFC ODBC acess-designed portal)
    2007-03-26 08:21:09下载
    积分:1
  • Connect_Back_windows
    一个隐蔽的后门程序,反弹远程主机命令行.(A hidden backdoors, rebounded remote host command line.)
    2013-09-03 14:09:38下载
    积分:1
  • vcText
    用VC++编写一个CDC文字处理程序的代码,通过本程序大家可掌握如何产生自定义字体和自定义插入符,熟悉对CString类的使用。讲解定时器的使用和DrawText函数的巧妙运用以及CDC的裁减功能。(Using VC++ to write a word processing program code CDC, through this process we can learn how to create custom fonts and custom insert a symbol, familiar with the use of the CString class. Explain the use of timers and the clever use of DrawText function and the reduction of CDC function.)
    2010-05-18 18:18:01下载
    积分:1
  • CalRemainder
    可以根据输入的生成多项式计算CRC16的余式表,并输出到TXT文件中打开。附赠CRC16的查表程序和直接计算程序,供验证用。使用这段程序,可以完美解决CRC16的编程问题,CRC32以及CRC8也可以参考使用。(CRC16 remainder table according to the generator polynomial of the input and output to a TXT file to open. Comes with a CRC16 table look-up procedure and a direct calculation program, for verification purposes. This program can be the perfect solution the CRC16 programming problem, the CRC32 and CRC8 also be of use.)
    2012-02-18 12:56:17下载
    积分:1
  • VC2008EngineDemo
    ArcGIS EngineGIS开发介绍(ArcGIS EngineGIS)
    2012-03-14 14:31:09下载
    积分:1
  • Linked-list-version-of--system
    链表版的软件工程师管理系统,可以对工程师的信息进行增删改查(The linked list version of the software engineers, management system that can CRUD information for engineers)
    2012-05-06 21:34:37下载
    积分:1
  • TCPsocket
    TCP和UDP socket编程,向固定服务器发送学号姓名信息,用udp从服务器获得一个随机字符串(TCP and UDP socket programming, Student ID Name information sent to the fixed server udp from server to obtain a random string)
    2012-10-21 09:39:54下载
    积分:1
  • vb_kill_process
    vb,结束指定进程,api结束进程,api进程处理(vb,kill process)
    2009-04-19 10:40:18下载
    积分:1
  • TongBu1111
    在windows操作系统上,测试排序,常用的排序方法,主要是测试使用(Test sort program with uasual ordering approach based on Windows OS, mainly for test.)
    2005-07-06 23:54:44下载
    积分:1
  • PStechnology
    详细介绍了ps的基础技巧,让你从小白成为ps高手迈出了第一步。(Details of the ps of basic skills, so that you become ps from the white master the first step.)
    2013-12-28 20:40:28下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 42今日下载