double GetPerim() const{ return r*2*PI;}double GetArea() const{ return r*r*PI;}//定义在类内的成员函数会被自动设为inline。//类外就要声明一下了。