#include using namespace std; const double pi = 3.14; //Point类,派生出Rectangle类和Circle类,计算各派生类对象的面积Area()。 template class Point { public: Point(){} Point(const T x, const T y); Point& operator= (const Point&p); public: T x; T y; }
← 上一条:樟木煮水的作用是什么? 下一条:JAVA编程,定义一个(圆)类并添加一个方法 →