面向对象程序设计C++ 试卷 #include using namespace std; class base { public: virtual float area() const { return 0; } }; class triangle: public base { protected: float bian,he