文件名称:jisuanmianji
介绍说明--下载内容均来自于网络,请自行研究使用
编写C++程序完成以下功能:
定义一个Point类,其属性包括点的坐标,提供计算两点之间距离的方法
定义一个矩形类,其属性包括左上角和右下角两个点,提供计算面积的方法
创建一个矩形对象,提示用户输入矩形左上角和右下角的坐标
观察矩形对象以及Point类成员的构造函数与析购函数计算其面积,并输出
-The preparation of C++ Process is complete the following functions: the definition of a Point, whose properties include the coordinates of points to provide the calculation method of distance between two points define a rectangle, whose properties include the lower-right corner of the upper-left corner and two points, the provision of computing area method to create a rectangular object, prompts the user to enter the upper left corner and the lower right corner of rectangular coordinates Observation Point Class of rectangular object, as well as members of the constructor with the analysis of procurement function of their size and output
定义一个Point类,其属性包括点的坐标,提供计算两点之间距离的方法
定义一个矩形类,其属性包括左上角和右下角两个点,提供计算面积的方法
创建一个矩形对象,提示用户输入矩形左上角和右下角的坐标
观察矩形对象以及Point类成员的构造函数与析购函数计算其面积,并输出
-The preparation of C++ Process is complete the following functions: the definition of a Point, whose properties include the coordinates of points to provide the calculation method of distance between two points define a rectangle, whose properties include the lower-right corner of the upper-left corner and two points, the provision of computing area method to create a rectangular object, prompts the user to enter the upper left corner and the lower right corner of rectangular coordinates Observation Point Class of rectangular object, as well as members of the constructor with the analysis of procurement function of their size and output
相关搜索: jisuanmianji
(系统自动生成,下载前可以参看下载内容)
下载文件列表
jisuanmianji.cpp