文件名称:Rectangle
-
所属分类:
- 标签属性:
- 上传时间:2014-01-02
-
文件大小:880.41kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
3. 声明一个名为Rectangle的矩形类,其属性为矩形的左下角和右上角两点的坐标,并有友元函数计算矩形的周长及面积。编程实现求左下角与右上角坐标分别为(2.1,3.2),(5.2,6.3)的矩形周长及面积。并编写一个友元类,类中的成员函数实现坐标点的显示。-3. Declare a class named Rectangle rectangle, and its property to the lower left and upper right corner of the rectangle coordinates of two points, and a friend function to calculate the perimeter and area of a rectangle. Programming and seek lower-left corner right corner coordinates are (2.1,3.2), (5.2,6.3) rectangular perimeter and area. And the preparation of a friend class, class member functions to display the coordinates of the point.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Rectangle/Debug/main.obj
Rectangle/Debug/rectangle.exe
Rectangle/Debug/rectangle.ilk
Rectangle/Debug/rectangle.obj
Rectangle/Debug/rectangle.pch
Rectangle/Debug/rectangle.pdb
Rectangle/Debug/vc60.idb
Rectangle/Debug/vc60.pdb
Rectangle/main.cpp
Rectangle/rectangle.cpp
Rectangle/rectangle.dsp
Rectangle/rectangle.dsw
Rectangle/rectangle.h
Rectangle/rectangle.ncb
Rectangle/rectangle.opt
Rectangle/rectangle.plg
Rectangle/Debug
Rectangle
Rectangle/Debug/rectangle.exe
Rectangle/Debug/rectangle.ilk
Rectangle/Debug/rectangle.obj
Rectangle/Debug/rectangle.pch
Rectangle/Debug/rectangle.pdb
Rectangle/Debug/vc60.idb
Rectangle/Debug/vc60.pdb
Rectangle/main.cpp
Rectangle/rectangle.cpp
Rectangle/rectangle.dsp
Rectangle/rectangle.dsw
Rectangle/rectangle.h
Rectangle/rectangle.ncb
Rectangle/rectangle.opt
Rectangle/rectangle.plg
Rectangle/Debug
Rectangle
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.