说明: #include using namespace std; class base { public: virtual float area() const { return 0; } }; class triangle: public base { protected: float bian,height; public: triangle(float a=0, float h=0) { bian=a; height=h; } virtual float area() const { ret
<u010994122> 上传 | 大小:58kb