Description: Calculate the area and perimeter of triangles, requirements are as follows:
1 Point class design (dot class)
2 Triangle design categories, including at least its constructor, access area and perimeter approach.
3 by the input method to determine the three coordinates of a triangle and the output triangle area perimeter content.计算三角形的面积和周长,要求如下:
1. 设计出Point类(点类)
2. 设计出Triangle类,至少包括其构造方法,获取面积和周长的方法。
3. 通过输入三点坐标的方法来确定一个三角形,并输出三角形的面积周长等内容。
To Search:
File list (Check if you may need any files):
classandobject.doc