搜索资源列表
xuhanshu
- 一个程序计算三角,正方形和圆形的面积。 分析:依题意,可以抽象出一个基类CBase,在其中说明一个虚函数,用来求面积,并利用单接口、多实现版本设计各个图形求面积的方法。C++初学者的大作业 -A program to calculate the triangle, square and round the area. Analysis: According to the meaning of problems can be an abstract base class CBase, wh
asd
- 应用C++的多态性,利用派生类与继承,用虚函数举例计算三角形,矩形和圆的面积。-Application the polymorphism C++ using the derived class with inheritance, virtual functions for example to calculate the area of triangles, rectangles and circles.