從抽象基類Shape,派生出5個派生類:Circle(圓形),Square(正方形),Rectangle(矩形) ,Trapezoid(梯形),Triangle(三角形)。

#include<iostream>ios #include<string>spa using namespace std;ci class Shapestring {io        public:class               Shape(doublex=0,double y=0,double h=0);stream               voidsetShape(double
相關文章
相關標籤/搜索