C纯虚数和抽象类 #include"iostream.h" class CShape { public: virtual float area()=0; //纯虚函数的建立 }; class CTriangle:public CShape { public: CTriangle(float h,float w) {