An interesting talk Ajahn Nyanadhammo, abbot of Wat Pah Nanachat International Monastery, visits Perth. His talk had the audience spellbound as he explained Buddhist strate gies that can take us out of the unsatisfactoriness of human existence to fr eedom. We also hear of the oldest monk in the world who was swallowed and th en regurgitated by a giant python! And why red light districts have red ligh ts... http://www.youtube.com/watch?v=22HMb_rV-sc
it allows constructing Line which contradicts in itself. Line l(Point(0,0), Point(1,0), 2); Length should be a member function. Point better be private.
【在 s******u 的大作中提到】 : 下面这个类定义有什么问题啊?谢谢。 : 我想到的答案就是这些数据应该是private的,还有什么吗? : class Line : { : public: : Point p1; : Point p2; : double length; : }