摘要: 概述:成员指针只应用于类的非 static 成员。static 类成员不是任何对象的组成部分,所以不需要特殊语法来指向 static 成员,static 成员指针是普通指针。 一.定义数据成员的指针 1.对于类 class Screen { public: typedef std::string::size_type index; ... 阅读全文
posted @ 2012-08-31 17:28 ForFreeDom 阅读(438) 评论(0) 推荐(0) 编辑