摘要: 友元类访问被关联类的非静态成员 友元类不能直接访问被关联类的数据,如: template <typename Object> class Table { private: int a; ... public: class Table_2 { protected: friend class Table 阅读全文
posted @ 2025-07-09 20:25 永恒圣剑 阅读(6) 评论(0) 推荐(0)