摘要: C++支持三种类型的member function:static,nostatic,virtual,每一种类型被调用的方式各不相同。4.1 member的各种调用方式1:非静态成员函数:c++设计的准则之一是nostatic member function 和nomember function的调用效率一样 也就是float magnitude3d(const Point3d *_this){……};float Point3d::magnitude3d( ) const { ...} 有相同的效率实际上 member function 被内化为nomember function的形式,其步骤为 阅读全文
posted @ 2011-11-24 00:14 foreverlearn 阅读(148) 评论(0) 推荐(0) 编辑