登录
首页 » Visual C++ » area

area

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

  • CERas
    help for C# connection
    2010-03-09 19:41:30下载
    积分:1
  • MDIFrameBackground
    To get this task done, my first instinct was to catch the WM_ERASEBKGND in CMainFrame and do the FillSolidRect there. But I soon realized that approach didn t do anything other than make the frame flicker and show red only when it s being resized, otherwise the gray background was completely intact. Not exactly what I was looking for. Suddenly it became a little mystery. Why doesn t the background of the frame change when I fill it with a color in the frame s WM_ERASEBKGND handler? So I went on a hunt, I went through a lot of the CMDIFrameWnd and CFrameWnd code looking for methods that would draw on the frame, and there was not much there. I finally ended up at CMainFrame::OnCreate method, I set a breakpoint and stepped through the CMDIFrameWnd::OnCreate method. After what seemed to be hours of searching I came across the following code in CMDIFrameWnd::CreateClient:
    2010-08-06 14:07:20下载
    积分:1
  • 资源查看
    类似于“资源管理器”的程序,可以查看,系统的所有资源(similar to the "resource management for" process, can view, the system of all resources)
    2005-04-23 10:14:15下载
    积分:1
  • CPPPrimer4
    C++Primer第四版中文版(电子版).pdf(C++Primer fourth edition of the Chinese version (electronic version). Pdf)
    2013-08-26 09:20:16下载
    积分:1
  • RubikCube-master
    用c++和Direct3D写的一个3D三阶魔方(3D Rubik Cube based on C++&Direct3D)
    2017-10-27 14:05:08下载
    积分:1
  • gest
    void swap1(int x, int y) //值传递 void swap2(int *px, int *py) //指针传递 void swap3(int &x, int &y) //引用传递 的使用(void swap1(int x, int y) //值传递 void swap2(int*px, int*py) //指针传递 void swap3(int &x, int &y) //引用传递 的使用)
    2012-04-30 16:41:44下载
    积分:1
  • wenjianchuanshu
    我的毕业设计,一个简单的集聊天,文件传输于一体的vc源码,可选TCP或UDP传输模式!(My graduation project, a simple set chat, file transfer in one vc source, optional TCP or UDP transfer mode!)
    2009-05-08 18:37:52下载
    积分:1
  • DSP-AD
    针对TMS320DSP5000的AD采样程序(AD sampling procedures for TMS320DSP5000)
    2013-09-15 21:20:25下载
    积分:1
  • Catering-management-system
    本系统有三种操作权限,其中,营业员只可以执行开台、点菜、买单及查询日收入操作;领班可以执行开台、点菜、买单、进货、添加新员工、日收入及月收入查询等操作;经理具有最高权限,除了领班及营业员的操作权限外,还可以设置员工权限、添加商品信息及菜式信息、备份与恢复数据库及初始化数据等操作。(The system has three operating authority, which can only be executed Founding salesperson, a la carte, pay and check daily revenue operations foreman can perform Founding, a la carte, pay, purchase, adding new employees, daily income and monthly income of inquiry operation manager with the highest authority, in addition to the foreman and the operating authority salesperson, you can also set permissions for employees, product information and dishes to add information, database backup and recovery, and initial data and other operations.)
    2014-04-21 13:40:34下载
    积分:1
  • SMG138
    74HC138驱动数码管程序,驱动4位共阳数码管,阳极全部高电平,138驱动段码(74HC138-driven digital control program)
    2013-12-25 15:15:10下载
    积分:1
  • 696518资源总数
  • 104881会员总数
  • 38今日下载