Description: 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.
To Search:
File list (Check if you may need any files):
Rectangle\Debug\main.obj
.........\.....\rectangle.exe
.........\.....\rectangle.ilk
.........\.....\rectangle.obj
.........\.....\rectangle.pch
.........\.....\rectangle.pdb
.........\.....\vc60.idb
.........\.....\vc60.pdb
.........\main.cpp
.........\rectangle.cpp
.........\rectangle.dsp
.........\rectangle.dsw
.........\rectangle.h
.........\rectangle.ncb
.........\rectangle.opt
.........\rectangle.plg
.........\Debug
Rectangle