#include"head.h"
void main(){
CCircle cricle(1.0);
cricle.SetDate(1.0);
cricle.Area();
cricle.Perimeter();
puts("");
CTriangle triangle(1.0,2.0);
triangle.SetDate(1.0,2.0);
triangle.Area();
puts("");
CRectangle rectangle(1.0,2.0);
rectangle.SetDate(1.0,2.0);
rectangle.Area();
rectangle.Perimeter();
puts("");
CTrapezia trapezia(1.0,2.0,3.0);
trapezia.SetDate(1.0,2.0,3.0);
trapezia.Area();
}
评论0
最新资源