文件名称:exp23
介绍说明--下载内容均来自于网络,请自行研究使用
1.设计一个类CRectanglea.a.该类重的私有成员变量存放Rectangle的左下角x,y和它的长(int)、宽(int),并且长、宽的默认值都是10。b.通过函数设置其长和宽,并确保长和宽在(0,50)范围之内c. 定义求它的周长的函数Perimeter。
并在此基础上实现Move、Size、Area、Getx、Gety函数。-1. Design a class CRectanglea.a. Weight of such private member variables store the lower left corner of the Rectangle' s x, y, and its length (int), width (int), and the length, the width of the default values are 10. by function set its length and width, and to ensure that the length and width of the range (0,50) c. defined demand function of its perimeter Perimeter. On this basis, Move, Size, Area, Getx, Gety function.
并在此基础上实现Move、Size、Area、Getx、Gety函数。-1. Design a class CRectanglea.a. Weight of such private member variables store the lower left corner of the Rectangle' s x, y, and its length (int), width (int), and the length, the width of the default values are 10. by function set its length and width, and to ensure that the length and width of the range (0,50) c. defined demand function of its perimeter Perimeter. On this basis, Move, Size, Area, Getx, Gety function.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
| ||
实验2 | 3\2010010481_340523_11020820_2010010481.rar | |
.......\689507402_2_实验二、三.docx | ||
实验2 | 3 |