文件名称:main1
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:725byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
1、 矩形
编写C++程序完成以下功能:
(1) 定义一个Point类,其属性包括点的坐标,提供计算两点之间距离的方法;
(2) 定义一个矩形类,其属性包括左上角和右下角两个点,提供计算面积的方法;
(3) 创建一个矩形对象,提示用户输入矩形左上角和右下角的坐标;
(4) 观察矩形对象以及Point类成员的构造函数与析构函数的调用;
(5) 计算其面积,并输出。-1, rectangular
Write a c++ program to complete the following features:
(1) the definition and the attribute of a were provided, including some coordinate calculation of the distance between the two methods,
(2) defines a rectangular type, its properties including upper and lower two points, provide calculation method of area,
(3) to create a rectangular object that prompts the user for rectangular coordinate the upper and lower
(4) were observed rectangular object and members of the class constructors and destructor call,
(5) calculating the area, and output
编写C++程序完成以下功能:
(1) 定义一个Point类,其属性包括点的坐标,提供计算两点之间距离的方法;
(2) 定义一个矩形类,其属性包括左上角和右下角两个点,提供计算面积的方法;
(3) 创建一个矩形对象,提示用户输入矩形左上角和右下角的坐标;
(4) 观察矩形对象以及Point类成员的构造函数与析构函数的调用;
(5) 计算其面积,并输出。-1, rectangular
Write a c++ program to complete the following features:
(1) the definition and the attribute of a were provided, including some coordinate calculation of the distance between the two methods,
(2) defines a rectangular type, its properties including upper and lower two points, provide calculation method of area,
(3) to create a rectangular object that prompts the user for rectangular coordinate the upper and lower
(4) were observed rectangular object and members of the class constructors and destructor call,
(5) calculating the area, and output
(系统自动生成,下载前可以参看下载内容)
下载文件列表
main1.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.