登录
首页 » 其他项目 » 定义一个抽象类的CShape,包括纯虚数Area(用来计算面积)和SetData(用来重设形状大小)。然后派生出三角形CTriangle类、矩形CRect类、圆...

定义一个抽象类的CShape,包括纯虚数Area(用来计算面积)和SetData(用来重设形状大小)。然后派生出三角形CTriangle类、矩形CRect类、圆...

于 2022-05-05 发布 文件大小:722.00 B
0 210
下载积分: 2 下载次数: 1

代码说明:

定义一个抽象类的CShape,包括纯虚数Area(用来计算面积)和SetData(用来重设形状大小)。然后派生出三角形CTriangle类、矩形CRect类、圆CCircle类,分别求其面积。最后定义一个CArea类,计算这几个形状的面积之和,各形状的数据通过CArea类构造函数或成员函数来设置。-Defines an abstract class CShape, including the pure imaginary number Area (used to calculate the area) and SetData (used to reset the shape, size). Then the triangle CTriangle derived class, rectangle CRect class, round CCircle categories, seeking its size. The final definition of a CArea class, calculate the size of the sum of several shapes, each shape data through CArea class constructor or member function to set up.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • This program for hamming code calculation
    This program for hamming code calculation
    2023-06-06 17:40:03下载
    积分:1
  • OFDM系统的信道估计和误差率的计算。
    OFDM信道估计算法仿真,统计无线OFDM系统信道估计算法的误码率。-The channel estimation of OFDM system and error rate caculation.
    2022-03-19 12:58:24下载
    积分:1
  • protel dxp 实 例 5
    protel dxp 实 例 5- protel dxp 实 例 5
    2022-04-06 21:17:53下载
    积分:1
  • ROM的备份工具,PPC,务必备份之前使用此工具的所有数据
    Rom Backup Tool for PPC, be sure to backup all data before use this tools-Rom Backup Tool for PPC. be sure to backup all data before use this tools
    2022-04-07 08:23:32下载
    积分:1
  • 简单的小区物业管理系统,户籍管理,出入管理,系统管理,收费管理,...
    简单的小区物业管理系统,户籍管理,出入管理,系统管理,收费管理,-simple residential property management system, household registration management, access control, system management, management fees,
    2022-01-25 16:15:55下载
    积分:1
  • 经典游戏源码
    经典游戏之源程序-中国象棋源代码,供学习和娱乐。-classic games being source-Chinese chess source for learning and entertainment.
    2022-03-14 03:12:30下载
    积分:1
  • 全是很实用的入门代码 可以轻松让新手上手
    全是很实用的入门代码 可以轻松让新手上手-all very practical entry code
    2023-03-11 15:30:03下载
    积分:1
  • K-means算法
    应用背景c++代码,基于k-means遗传算法的应用,是典型的基于原型的目标函数聚类方法的代表,它是数据点到原型的某种距离作为优化的目标函数,利用函数求极值的方法得到迭代运算的调整规则。其主要是来计算数据聚集的算法,主要通过不断地取离种子点最近均值的算法。关键技术K-Means的算法如下:随机在图中取K(这里K=2)个种子点。然后对图中的所有点求到这K个种子点的距离,假如点Pi离种子点Si最近,那么Pi属于Si点群。(上图中,我们可以看到A,B属于上面的种子点,C,D,E属于下面中部的种子点)接下来,我们要移动种子点到属于他的“点群”的中心。(见图上的第三步)然后重复第2)和第3)步,直到,种子点没有移动(我们可以看到图中的第四步上面的种子点聚合了A,B,C,下面的种子点聚合了D,E)。
    2022-08-15 16:57:53下载
    积分:1
  • 一个页面使用DIV层设计,增加页面打印在两速度,优化…
    1、页面采用DIV层设计,增加页面载入速度 2、优化代码,更易搜索引擎收录 3、签写信息、存入信息、显示信息均在一个页面上执行,方便代码的管理和查看 后台地址:Manage/Login.asp 管理用户:tzstudent.com 管理密码:tzstudent.com -a page using DIV layer design, increased pages printed in the two speed, optimize code, better search engine contains three sign the information into the message that the information is on one page implementation, facilitate code management and background check Address : Manage/Login.asp management users : tzstudent.com management Password : tzstudent.com
    2022-07-21 06:40:42下载
    积分:1
  • 新三国多开代码 易语言的 提供给大家参考学习
    新三国多开代码 易语言的 提供给大家参考学习-blive me
    2022-01-25 21:41:54下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载