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

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

于 2022-05-05 发布 文件大小:722.00 B
0 211
下载积分: 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 个回复

  • program to perform sequential divider in vhdl
    program to perform sequential divider in vhdl
    2023-01-02 23:05:04下载
    积分:1
  • 在TC534
    基于TC534的数据采集卡设计,格式为word,论文,看清楚下载,或许对你有帮助-The TC534-based data acquisition card design, the format for the word, papers, look at download, and perhaps help you
    2022-02-28 13:17:12下载
    积分:1
  • ServerTime
    ServerTime
    2022-03-14 06:20:35下载
    积分:1
  • 两个一元多式相加相乘源程序。用C++编写。
    两个一元多项式相加相乘源程序。用C++编写。-2 1 yuan polynomial multiplication combined source. C preparation.
    2022-01-25 19:23:53下载
    积分:1
  • C++二叉树
    一个程序,创建二进制搜索树遍历它,变成另一种复制树和删除元素。 T稀土元素可以以不同的方式遍历。以下为用于遍历树的常用的方法. 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报 打分 发表评论 暂无评论
    2022-02-13 12:26:47下载
    积分:1
  • 1.本软件为绿色软件,解压后在“串口调试助手V2.2.EXE”上右击,再选“发送桌面快捷方式”即可将程序快捷方式放在桌面上。 2.程序名“串口调试助手V2....
    1.本软件为绿色软件,解压后在“串口调试助手V2.2.EXE”上右击,再选“发送桌面快捷方式”即可将程序快捷方式放在桌面上。 2.程序名“串口调试助手V2.2”不要更改,否则无法使用帮助文件-1. The software for the green software, unpacked the "serial debugging assistant V2.2.EXE" right-click, select "Send desktop shortcuts" may be procedural shortcuts on the table. 2. Procedures were "serial debugging assistant V2.2" not to change, not to use the help file
    2022-02-15 10:10:07下载
    积分:1
  • This is an excellent reader, hurry! ! ! This is an excellent reader, hurry!
    这是一个阅读器顶好的,快来看看!!! 这是一个阅读器顶好的,快来-This is an excellent reader, hurry! ! ! This is an excellent reader, hurry!
    2023-04-23 00:15:03下载
    积分:1
  • uva543解法(提共題和解法程式)
    題目:在1742年一個德國業餘數學家克里斯蒂安 < N < 1000000)。- = 0代表輸入結束。輸出對每筆輸入資料你應該要以N = A + B的形式輸出,其中A,B都是奇數的質數。如果有一組以上的A B 請輸出巴最大的那組如果找不到這樣的A B、 請輸出"哥德巴赫猜想是錯誤的。"解法: 当年 1。先建立一個一為陣列、 把奇數質數的格子設為1、 其餘設為0、 使用埃氏篩法得到質數2。判斷一為陣列、 如果兩個為1的陣列相加等於輸入、 輸出陣列位置、 即為答案
    2022-04-12 05:48:44下载
    积分:1
  • support vector clustering results of the program to preserve small little
    支持向量聚类的保存结果的源程序很小 不大-support vector clustering results of the program to preserve small little
    2023-01-02 17:20:22下载
    积分:1
  • 一款C编写的mario程序,功能基本实现,适合学习
    一款C编写的mario程序,功能基本实现,适合学习-Mario a program written in C, functions basically for learning
    2022-05-17 04:44:31下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载